Setting ENVIRONMENT_NAME.

This commit is contained in:
Patrick Lehmann
2022-11-06 12:53:28 +01:00
parent 7aae4b2aaa
commit e5af317346
2 changed files with 2 additions and 1 deletions

View File

@@ -127,8 +127,8 @@ jobs:
- name: Collect coverage
continue-on-error: true
run: |
export ENVIRONMENT_NAME="Linux (x86-64)"
RELDIR="$(realpath --relative-to=${{ inputs.tests_directory }} .)"
echo "relative: ${RELDIR}"
cd ${{ inputs.tests_directory }}
[ 'x${{ inputs.coverage_config }}' != 'x' ] && PYCOV_ARGS="--cov-config=${RELDIR}/${{ inputs.coverage_config }}" || unset PYCOV_ARGS
echo "python -m pytest -rA --cov=${RELDIR} ${PYCOV_ARGS} ${{ inputs.unittest_directory }} --color=yes"

View File

@@ -189,6 +189,7 @@ jobs:
- name: ☑ Run unit tests (Ubuntu/macOS)
if: matrix.system != 'windows'
run: |
export ENVIRONMENT_NAME="${{ matrix.envname }}"
cd ${{ inputs.tests_directory }}
[ 'x${{ inputs.artifact }}' != 'x' ] && PYTEST_ARGS='--junitxml=TestReportSummary.xml' || unset PYTEST_ARGS
python -m pytest -rA ${{ inputs.unittest_directory }} $PYTEST_ARGS --color=yes