Trying to solve problems with Windows.

This commit is contained in:
Patrick Lehmann
2022-11-30 22:12:31 +01:00
parent 9171343062
commit fc8bb4241b

View File

@@ -192,8 +192,8 @@ jobs:
if: matrix.system == 'windows' if: matrix.system == 'windows'
run: | run: |
$env:ENVIRONMENT_NAME = "${{ matrix.envname }}" $env:ENVIRONMENT_NAME = "${{ matrix.envname }}"
cd ${{ inputs.tests_directory }} if ("${{ inputs.tests_directory }}") { cd "${{ inputs.tests_directory }}" }
$PYTEST_ARGS = if ("${{ inputs.artifact }}".length -gt 0) { "--junitxml=TestReportSummary.xml" } else { "" } $PYTEST_ARGS = if ("${{ inputs.artifact }}") { "--junitxml=TestReportSummary.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 (Ubuntu/macOS) - name: ☑ Run unit tests (Ubuntu/macOS)