File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed
Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments