Parameters: add option 'system_list'; UnitTesting now requires field 'system' in the matrix

This commit is contained in:
umarcor
2022-01-06 23:37:49 +01:00
parent 26afa43fa4
commit 3f489f0bed
3 changed files with 30 additions and 9 deletions

View File

@@ -48,8 +48,8 @@ on:
jobs:
UnitTesting:
name: ${{ matrix.icon }} Unit Tests using Python ${{ matrix.python }}
runs-on: ubuntu-latest
name: ${{ matrix.sysicon }} ${{ matrix.pyicon }} Unit Tests using Python ${{ matrix.python }}
runs-on: ${{ matrix.system }}-latest
strategy:
fail-fast: false
@@ -71,6 +71,7 @@ jobs:
python -m pip install ${{ inputs.requirements }}
- name: ☑ Run unit tests
shell: bash
run: |
[ 'x${{ inputs.artifact }}' != 'x' ] && PYTEST_ARGS='--junitxml=TestReport.xml' || unset PYTEST_ARGS
python -m pytest -rA ${{ inputs.unittest_directory }} $PYTEST_ARGS --color=yes
@@ -79,7 +80,7 @@ jobs:
if: inputs.artifact != ''
uses: actions/upload-artifact@v2
with:
name: ${{ inputs.artifact }}-${{ matrix.python }}
name: ${{ inputs.artifact }}-${{ matrix.system }}-${{ matrix.python }}
path: TestReport.xml
if-no-files-found: error
retention-days: 1