mirror of
https://github.com/ansible-collections/community.routeros.git
synced 2025-08-02 17:24:35 +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:
|
||||
runs-on: ubuntu-latest
|
||||
name: Units (Ⓐ${{ matrix.ansible }}+py${{ matrix.python }})
|
||||
name: Units (Ⓐ${{ matrix.ansible }})
|
||||
strategy:
|
||||
# As soon as the first unit test fails, cancel the others to free up the CI queue
|
||||
fail-fast: true
|
||||
|
@ -72,17 +72,6 @@ jobs:
|
|||
- stable-2.9
|
||||
- stable-2.10
|
||||
- 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:
|
||||
- name: Check out code
|
||||
|
@ -102,8 +91,8 @@ jobs:
|
|||
run: ansible-galaxy collection install ansible.netcommon -p .
|
||||
|
||||
# Run the unit tests
|
||||
- name: Run unit test
|
||||
run: ansible-test units -v --color --python ${{ matrix.python }} --docker --coverage
|
||||
- name: Run unit tests for all Python versions
|
||||
run: ansible-test units -v --color --docker --coverage
|
||||
working-directory: ./ansible_collections/community/routeros
|
||||
|
||||
# ansible-test support producing code coverage date
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue