mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-08-17 16:21:21 +02:00
Simplify CI matrix.
By running unit tests for all Python versions with one ansible-test command, we save quite some runtime (we don't have to set up the same ansible-test environment multiple times) and reduce the large amount of unit test entries in the CI.
This commit is contained in:
parent
1b9c46fbe5
commit
7b13948c8c
1 changed files with 3 additions and 14 deletions
17
.github/workflows/ansible-test.yml
vendored
17
.github/workflows/ansible-test.yml
vendored
|
@ -63,7 +63,7 @@ jobs:
|
||||||
|
|
||||||
units:
|
units:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Units (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }})
|
name: Units (Ⓐ${{ matrix.ansible }})
|
||||||
strategy:
|
strategy:
|
||||||
# As soon as the first unit test fails, cancel the others to free up the CI queue
|
# As soon as the first unit test fails, cancel the others to free up the CI queue
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
|
@ -72,17 +72,6 @@ jobs:
|
||||||
- stable-2.9
|
- stable-2.9
|
||||||
- stable-2.10
|
- stable-2.10
|
||||||
- devel
|
- devel
|
||||||
python:
|
|
||||||
- 2.6
|
|
||||||
- 2.7
|
|
||||||
- 3.5
|
|
||||||
- 3.6
|
|
||||||
- 3.7
|
|
||||||
- 3.8
|
|
||||||
- 3.9
|
|
||||||
exclude:
|
|
||||||
- ansible: stable-2.9
|
|
||||||
python: 3.9
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
|
@ -102,8 +91,8 @@ jobs:
|
||||||
run: ansible-galaxy collection install ansible.netcommon -p .
|
run: ansible-galaxy collection install ansible.netcommon -p .
|
||||||
|
|
||||||
# Run the unit tests
|
# Run the unit tests
|
||||||
- name: Run unit test
|
- name: Run unit tests for all Python versions
|
||||||
run: ansible-test units -v --color --python ${{ matrix.python }} --docker --coverage
|
run: ansible-test units -v --color --docker --coverage
|
||||||
working-directory: ./ansible_collections/community/routeros
|
working-directory: ./ansible_collections/community/routeros
|
||||||
|
|
||||||
# ansible-test support producing code coverage date
|
# ansible-test support producing code coverage date
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue