@@ -140,7 +140,7 @@ jobs:
140
140
- " eos_cli_config_gen_deprecated_vars"
141
141
- " eos_cli_config_gen_negative_unit_tests"
142
142
ansible_version :
143
- - " ansible-core<2.19.0 --upgrade "
143
+ - " ansible-core<2.19.0"
144
144
# Also test minimum ansible version for one scenario.
145
145
include :
146
146
- avd_scenario : " eos_cli_config_gen"
@@ -149,17 +149,14 @@ jobs:
149
149
if : needs.file-changes.outputs.config_gen == 'true'
150
150
steps :
151
151
- uses : actions/checkout@v4
152
- - name : Run molecule action
153
- uses :
arista-netdevops-community/[email protected]
154
- with :
155
- molecule_parentdir : " ansible_collections/arista/avd"
156
- molecule_command : " test"
157
- molecule_args : " --scenario-name ${{ matrix.avd_scenario }}"
158
- pip_file : .github/requirements-ci-dev.txt
159
- galaxy_file : " ansible_collections/arista/avd/collections.yml"
160
- ansible : ${{ matrix.ansible_version }}
161
- check_git : true
162
- check_git_enforced : true
152
+ - name : Run molecule test
153
+ run : |
154
+ pip install "${{ matrix.ansible_version}}" -r .github/requirements-ci-dev.txt
155
+ cd ansible_collections/arista/avd
156
+ molecule test --scenario-name ${{ matrix.avd_scenario }}
157
+ - name : Check GIT status
158
+ run : |
159
+ sh .github/check-git-status.sh
163
160
# - uses: actions/upload-artifact@v4
164
161
# with:
165
162
# name: molecule-${{ matrix.avd_scenario }}-artifacts
@@ -175,22 +172,19 @@ jobs:
175
172
fail-fast : true
176
173
matrix :
177
174
avd_scenario : ["dhcp_configuration", "dhcp_provisioning"]
178
- ansible_version : ["ansible-core<2.19.0 --upgrade "]
175
+ ansible_version : ["ansible-core<2.19.0"]
179
176
needs : [file-changes]
180
177
if : needs.file-changes.outputs.dhcp == 'true'
181
178
steps :
182
179
- uses : actions/checkout@v4
183
- - name : Run molecule action
184
- uses :
arista-netdevops-community/[email protected]
185
- with :
186
- molecule_parentdir : " ansible_collections/arista/avd"
187
- molecule_command : " test"
188
- molecule_args : " --scenario-name ${{ matrix.avd_scenario }}"
189
- pip_file : .github/requirements-ci-dev.txt
190
- galaxy_file : " ansible_collections/arista/avd/collections.yml"
191
- ansible : ${{ matrix.ansible_version }}
192
- check_git : true
193
- check_git_enforced : true
180
+ - name : Run molecule test
181
+ run : |
182
+ pip install "${{ matrix.ansible_version}}" -r .github/requirements-ci-dev.txt
183
+ cd ansible_collections/arista/avd
184
+ molecule test --scenario-name ${{ matrix.avd_scenario }}
185
+ - name : Check GIT status
186
+ run : |
187
+ sh .github/check-git-status.sh
194
188
# - uses: actions/upload-artifact@v4
195
189
# with:
196
190
# name: molecule-${{ matrix.avd_scenario }}-artifacts
@@ -225,19 +219,19 @@ jobs:
225
219
- " example-cv-pathfinder"
226
220
ansible_version :
227
221
# Testing all scenario with 2.16.x, due to bug with in 2.17.0 with and the way we test eos_designs_negative_unit_tests https://github.com/ansible/ansible/issues/83292
228
- - " ansible-core>=2.16.0,<2.17.0 --upgrade "
222
+ - " ansible-core>=2.16.0,<2.17.0"
229
223
pip_requirements :
230
224
- " .github/requirements-ci-dev.txt"
231
225
# Also test minimum ansible version for one scenario.
232
226
include :
233
227
- avd_scenario : " eos_designs_unit_tests"
234
- ansible_version : " ansible-core==2.16.0 --upgrade "
228
+ ansible_version : " ansible-core==2.16.0"
235
229
pip_requirements : " .github/requirements-ci-dev.txt"
236
230
- avd_scenario : " eos_designs_unit_tests"
237
- ansible_version : " ansible-core<2.18.0 --upgrade "
231
+ ansible_version : " ansible-core<2.18.0"
238
232
pip_requirements : " .github/requirements-ci-dev.txt"
239
233
- avd_scenario : " eos_designs_unit_tests"
240
- ansible_version : " ansible-core<2.19.0 --upgrade "
234
+ ansible_version : " ansible-core<2.19.0"
241
235
pip_requirements : " .github/requirements-ci-dev.txt"
242
236
needs : [file-changes]
243
237
if : needs.file-changes.outputs.eos_design == 'true' || needs.file-changes.outputs.config_gen == 'true'
@@ -249,17 +243,14 @@ jobs:
249
243
uv pip compile .github/requirements-ci-dev.txt --resolution=lowest-direct > ${{ matrix.pip_requirements }}
250
244
cat ${{ matrix.pip_requirements }}
251
245
if : matrix.pip_requirements == 'tmp-requirements-minimum.txt'
252
- - name : Run molecule action
253
- uses :
arista-netdevops-community/[email protected]
254
- with :
255
- molecule_parentdir : " ansible_collections/arista/avd"
256
- molecule_command : " test"
257
- molecule_args : " --scenario-name ${{ matrix.avd_scenario }}"
258
- pip_file : ${{ matrix.pip_requirements }}
259
- galaxy_file : " ansible_collections/arista/avd/collections.yml"
260
- ansible : ${{ matrix.ansible_version }}
261
- check_git : true
262
- check_git_enforced : true
246
+ - name : Run molecule test
247
+ run : |
248
+ pip install "${{ matrix.ansible_version}}" -r .github/requirements-ci-dev.txt
249
+ cd ansible_collections/arista/avd
250
+ molecule test --scenario-name ${{ matrix.avd_scenario }}
251
+ - name : Check GIT status
252
+ run : |
253
+ sh .github/check-git-status.sh
263
254
# - uses: actions/upload-artifact@v4
264
255
# with:
265
256
# name: molecule-${{ matrix.avd_scenario }}-artifacts
@@ -276,7 +267,7 @@ jobs:
276
267
avd_scenario :
277
268
- " eos_config_deploy_cvp"
278
269
ansible_version :
279
- - " ansible-core<2.19.0 --upgrade "
270
+ - " ansible-core<2.19.0"
280
271
include :
281
272
- avd_scenario : " eos_config_deploy_cvp"
282
273
ansible_version : " ansible-core==2.16.0"
@@ -285,17 +276,14 @@ jobs:
285
276
286
277
steps :
287
278
- uses : actions/checkout@v4
288
- - name : Run molecule action
289
- uses :
arista-netdevops-community/[email protected]
290
- with :
291
- molecule_parentdir : " ansible_collections/arista/avd"
292
- molecule_command : " test"
293
- molecule_args : " --scenario-name ${{ matrix.avd_scenario }}"
294
- pip_file : .github/requirements-ci-dev.txt
295
- galaxy_file : " ansible_collections/arista/avd/collections.yml"
296
- ansible : ${{ matrix.ansible_version }}
297
- check_git : true
298
- check_git_enforced : true
279
+ - name : Run molecule test
280
+ run : |
281
+ pip install "${{ matrix.ansible_version}}" -r .github/requirements-ci-dev.txt
282
+ cd ansible_collections/arista/avd
283
+ molecule test --scenario-name ${{ matrix.avd_scenario }}
284
+ - name : Check GIT status
285
+ run : |
286
+ sh .github/check-git-status.sh
299
287
# - uses: actions/upload-artifact@v4
300
288
# with:
301
289
# name: molecule-${{ matrix.avd_scenario }}-artifacts
@@ -313,25 +301,22 @@ jobs:
313
301
avd_scenario :
314
302
- ' anta_runner'
315
303
ansible_version :
316
- - ' ansible-core<2.19.0 --upgrade '
304
+ - ' ansible-core<2.19.0'
317
305
include :
318
306
- avd_scenario : ' anta_runner'
319
307
ansible_version : ' ansible-core==2.16.0'
320
308
needs : [ file-changes ]
321
309
if : needs.file-changes.outputs.eos_design == 'true' || needs.file-changes.outputs.anta_runner == 'true'
322
310
steps :
323
311
- uses : actions/checkout@v4
324
- - name : Run molecule action
325
- uses :
arista-netdevops-community/[email protected]
326
- with :
327
- molecule_parentdir : ' ansible_collections/arista/avd'
328
- molecule_command : ' test'
329
- molecule_args : ' --scenario-name ${{ matrix.avd_scenario }}'
330
- pip_file : .github/requirements-ci-dev.txt
331
- galaxy_file : " ansible_collections/arista/avd/collections.yml"
332
- ansible : ${{ matrix.ansible_version }}
333
- check_git : true
334
- check_git_enforced : true
312
+ - name : Run molecule test
313
+ run : |
314
+ pip install "${{ matrix.ansible_version}}" -r .github/requirements-ci-dev.txt
315
+ cd ansible_collections/arista/avd
316
+ molecule test --scenario-name ${{ matrix.avd_scenario }}
317
+ - name : Check GIT status
318
+ run : |
319
+ sh .github/check-git-status.sh
335
320
336
321
# ----------------------------------- #
337
322
# EOS Validate State MOLECULE
@@ -345,25 +330,22 @@ jobs:
345
330
avd_scenario :
346
331
- " eos_validate_state"
347
332
ansible_version :
348
- - " ansible-core<2.19.0 --upgrade "
333
+ - " ansible-core<2.19.0"
349
334
include :
350
335
- avd_scenario : " eos_validate_state"
351
336
ansible_version : " ansible-core==2.16.0"
352
337
needs : [file-changes]
353
338
if : needs.file-changes.outputs.eos_design == 'true' || needs.file-changes.outputs.validate_state == 'true'
354
339
steps :
355
340
- uses : actions/checkout@v4
356
- - name : Run molecule action
357
- uses :
arista-netdevops-community/[email protected]
358
- with :
359
- molecule_parentdir : " ansible_collections/arista/avd"
360
- molecule_command : " test"
361
- molecule_args : " --scenario-name ${{ matrix.avd_scenario }}"
362
- pip_file : .github/requirements-ci-dev.txt
363
- galaxy_file : " ansible_collections/arista/avd/collections.yml"
364
- ansible : ${{ matrix.ansible_version }}
365
- check_git : true
366
- check_git_enforced : true
341
+ - name : Run molecule test
342
+ run : |
343
+ pip install "${{ matrix.ansible_version}}" -r .github/requirements-ci-dev.txt
344
+ cd ansible_collections/arista/avd
345
+ molecule test --scenario-name ${{ matrix.avd_scenario }}
346
+ - name : Check GIT status
347
+ run : |
348
+ sh .github/check-git-status.sh
367
349
368
350
# ----------------------------------- #
369
351
# Ansible tests
0 commit comments