Improved PoSh code.

This commit is contained in:
Patrick Lehmann
2022-01-09 18:10:42 +01:00
parent e1f7599d79
commit 0fdef33cb4

View File

@@ -86,7 +86,7 @@ jobs:
- name: ☑ Run unit tests - name: ☑ Run unit tests
if: matrix.system == 'windows' if: matrix.system == 'windows'
run: | run: |
$PYTEST_ARGS = if (${{ inputs.artifact }} -eq "") { '--junitxml=TestReport.xml' } else { '' } $PYTEST_ARGS = if ("${{ inputs.artifact }}".length -gt 0) { "--junitxml=TestReport.xml" } else { "" }
python -m pytest -rA ${{ inputs.unittest_directory }} $PYTEST_ARGS --color=yes python -m pytest -rA ${{ inputs.unittest_directory }} $PYTEST_ARGS --color=yes
- name: ☑ Run unit tests - name: ☑ Run unit tests