From 7b13948c8cd1fd6077009c0e7b4d59cf43dd6acd Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 26 Oct 2020 15:10:33 +0100 Subject: [PATCH] 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. --- .github/workflows/ansible-test.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 842d854..619ce59 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -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