From be8c4c6554ef591372dbb85c1118690b4febd286 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Thu, 4 Jan 2024 11:27:14 +0000 Subject: [PATCH] Let's try setup-python action again --- .github/workflows/infra.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 41518c8..c05cd3b 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -20,15 +20,24 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: ${{ env.DEPLOY == 'some' && 2 || 1 }} + # - name: Install dependencies + # run: | + # apt update + # apt install -y python3-pip + # pip3 install -r requirements.txt + # ansible-galaxy collection install community.general + - name: Setup python + uses: actions/setup-python@v5 + with: + python-version: "3.9" + cache: pip - name: Install dependencies run: | - apt update - apt install -y python3-pip - pip3 install -r requirements.txt + pip install -r requirements.txt ansible-galaxy collection install community.general - name: Check playbooks -- 2.40.1