Skip to content

Commit 998d42f

Browse files
chore: Add matrix strategy for version testing across multiple Ansible versions
1 parent b72f099 commit 998d42f

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ on:
1010
branches: [master]
1111
jobs:
1212
ansible-syntax:
13+
strategy:
14+
matrix:
15+
include:
16+
- ansible_version: "2.16"
17+
python_version: "3.12"
18+
- ansible_version: "2.17"
19+
python_version: "3.12"
20+
- ansible_version: "2.18"
21+
python_version: "3.12"
1322
runs-on: ubuntu-latest
1423
name: Ansible Syntax Check
1524

@@ -22,12 +31,13 @@ jobs:
2231
- name: Set up Python
2332
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
2433
with:
25-
python-version: "3.11"
34+
python-version: ${{ matrix.python_version }}
2635

2736
- name: Install Ansible
2837
run: |
2938
python -m pip install --upgrade pip
30-
pip install ansible ansible-lint
39+
pip install https://github.com/ansible/ansible/archive/stable-${{ matrix.ansible_version }}.tar.gz --disable-pip-version-check
40+
pip install ansible-lint
3141
3242
- name: Install PAN-OS collection
3343
run: |

0 commit comments

Comments
 (0)