Skip to content

Commit d086478

Browse files
ci_workflow_update
Signed-off-by: rohitthakur2590 <[email protected]>
1 parent e40a4b6 commit d086478

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/tests.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,20 +139,27 @@ jobs:
139139
strategy:
140140
fail-fast: false
141141
matrix:
142-
ansible_version:
143-
- "stable-2.16"
144-
- "stable-2.17"
145-
- "stable-2.18"
146-
- "stable-2.19"
147-
- "stable-2.20"
148-
- "milestone"
149-
- "devel"
142+
include:
143+
- ansible_version: "stable-2.16"
144+
python_version: "3.11"
145+
- ansible_version: "stable-2.17"
146+
python_version: "3.11"
147+
- ansible_version: "stable-2.18"
148+
python_version: "3.11"
149+
- ansible_version: "stable-2.19"
150+
python_version: "3.11"
151+
- ansible_version: "stable-2.20"
152+
python_version: "3.12"
153+
- ansible_version: "milestone"
154+
python_version: "3.12"
155+
- ansible_version: "devel"
156+
python_version: "3.12"
150157
steps:
151158
- uses: actions/checkout@v5
152159
- name: Set up Python
153160
uses: actions/setup-python@v6
154161
with:
155-
python-version: "3.11"
162+
python-version: "${{ matrix.python_version }}"
156163
- name: Install ansible-compat, for tests
157164
run: python -m pip install ansible-compat
158165
- name: Install test dependencies
@@ -186,7 +193,7 @@ jobs:
186193
working-directory: ansible_collections/juniper/device
187194
run: |
188195
if [ -d "tests/unit" ]; then
189-
ansible-test units --python 3.11 --local --requirements
196+
ansible-test units --python ${{ matrix.python_version }} --local --requirements
190197
else
191198
echo "No unit tests directory found, skipping"
192199
fi

0 commit comments

Comments
 (0)