diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b0c4a6b0..1aa575d2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Install Ansible run: pip install git+https://github.com/ansible/ansible.git@devel - name: Install dependencies diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bdb218a2..497fa45c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,20 +17,19 @@ jobs: matrix: python: - "3.10" + - "3.11" + - "3.12" ansible: - - stable-2.11 - - stable-2.12 - - stable-2.13 - - stable-2.14 - - stable-2.15 - - devel + - stable-2.16 + - stable-2.17 include: - - python: "3.6" - ansible: "stable-2.11" - - python: "3.7" - ansible: "stable-2.11" - image_tag: "latest" + - python: "3.9" + ansible: "stable-2.15" + - python: "3.10" + ansible: "stable-2.15" - python: "3.11" + ansible: "stable-2.15" + - python: "3.12" ansible: "devel" image_tag: "nightly" lower_bounds: true @@ -46,6 +45,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} + - name: debug + run: | + which python + echo ${PATH} + ansible localhost -vvv -i tests/inventory/hosts -m command -a "echo $PATH" + - name: Install Ansible run: pip install git+https://github.com/ansible/ansible.git@${{ matrix.ansible }} - name: Install dependencies diff --git a/tests/inventory/hosts b/tests/inventory/hosts index 6db858ef..c39c170b 100644 --- a/tests/inventory/hosts +++ b/tests/inventory/hosts @@ -1,2 +1,2 @@ -localhost ansible_connection=local ansible_python_interpreter="/usr/bin/env python" +localhost ansible_connection=local ansible_python_interpreter="python" tests ansible_connection=local ansible_python_interpreter=../vcr_python_wrapper.py