Added PowerShell code.

This commit is contained in:
Patrick Lehmann
2022-01-09 17:39:16 +01:00
parent 60d77c2292
commit dad5e71bfe

View File

@@ -64,16 +64,16 @@ jobs:
- name: ⏬ Checkout repository
uses: actions/checkout@v2
- if: matrix.system == 'msys2'
name: '🟦 Setup MSYS2'
- name: '🟦 Setup MSYS2'
if: matrix.system == 'msys2'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
pacboy: python-pip:p
- if: matrix.system != 'msys2'
name: 🐍 Setup Python ${{ matrix.python }}
- name: 🐍 Setup Python ${{ matrix.python }}
if: matrix.system != 'msys2'
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
@@ -84,6 +84,13 @@ jobs:
python -m pip install ${{ inputs.requirements }}
- name: ☑ Run unit tests
if: matrix.system == 'windows'
run: |
$PYTEST_ARGS = if (${{ inputs.artifact }} -eq "") { '--junitxml=TestReport.xml' } else { '' }
python -m pytest -rA ${{ inputs.unittest_directory }} $PYTEST_ARGS --color=yes
- name: ☑ Run unit tests
if: matrix.system != 'windows'
run: |
[ 'x${{ inputs.artifact }}' != 'x' ] && PYTEST_ARGS='--junitxml=TestReport.xml' || unset PYTEST_ARGS
python -m pytest -rA ${{ inputs.unittest_directory }} $PYTEST_ARGS --color=yes