From 353b7c8d3392d9c45143754edd237596e63b18f7 Mon Sep 17 00:00:00 2001 From: Stanislav German-Evtushenko Date: Tue, 31 Oct 2023 14:41:18 +0900 Subject: [PATCH] Pin version of Python for Ansible 2.9 This should fix the tests --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index efb22b1..066c8ef 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,10 +40,17 @@ jobs: path: ${{ env.WORKDIR }} # https://github.com/ansible-community/molecule/pull/3409 - name: Set up Python 3 + if: matrix.ansible != 'ansible==2.9.*' uses: actions/setup-python@v4 with: python-version: '3.x' + - name: Set up Python 3 for Ansible 2.9 + if: matrix.ansible == 'ansible==2.9.*' + uses: actions/setup-python@v4 + with: + python-version: '3.8.x' + - name: Install test dependencies if: matrix.ansible != 'ansible==2.9.*' run: python3 -m pip install "${{ matrix.ansible }}" -Ur requirements-molecule.txt