mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Setting ENVIRONMENT_NAME.
This commit is contained in:
2
.github/workflows/CoverageCollection.yml
vendored
2
.github/workflows/CoverageCollection.yml
vendored
@@ -127,8 +127,8 @@ jobs:
|
|||||||
- name: Collect coverage
|
- name: Collect coverage
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
|
export ENVIRONMENT_NAME="Linux (x86-64)"
|
||||||
RELDIR="$(realpath --relative-to=${{ inputs.tests_directory }} .)"
|
RELDIR="$(realpath --relative-to=${{ inputs.tests_directory }} .)"
|
||||||
echo "relative: ${RELDIR}"
|
|
||||||
cd ${{ inputs.tests_directory }}
|
cd ${{ inputs.tests_directory }}
|
||||||
[ 'x${{ inputs.coverage_config }}' != 'x' ] && PYCOV_ARGS="--cov-config=${RELDIR}/${{ inputs.coverage_config }}" || unset PYCOV_ARGS
|
[ '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"
|
echo "python -m pytest -rA --cov=${RELDIR} ${PYCOV_ARGS} ${{ inputs.unittest_directory }} --color=yes"
|
||||||
|
|||||||
1
.github/workflows/UnitTesting.yml
vendored
1
.github/workflows/UnitTesting.yml
vendored
@@ -189,6 +189,7 @@ jobs:
|
|||||||
- name: ☑ Run unit tests (Ubuntu/macOS)
|
- name: ☑ Run unit tests (Ubuntu/macOS)
|
||||||
if: matrix.system != 'windows'
|
if: matrix.system != 'windows'
|
||||||
run: |
|
run: |
|
||||||
|
export ENVIRONMENT_NAME="${{ matrix.envname }}"
|
||||||
cd ${{ inputs.tests_directory }}
|
cd ${{ inputs.tests_directory }}
|
||||||
[ 'x${{ inputs.artifact }}' != 'x' ] && PYTEST_ARGS='--junitxml=TestReportSummary.xml' || unset PYTEST_ARGS
|
[ 'x${{ inputs.artifact }}' != 'x' ] && PYTEST_ARGS='--junitxml=TestReportSummary.xml' || unset PYTEST_ARGS
|
||||||
python -m pytest -rA ${{ inputs.unittest_directory }} $PYTEST_ARGS --color=yes
|
python -m pytest -rA ${{ inputs.unittest_directory }} $PYTEST_ARGS --color=yes
|
||||||
|
|||||||
Reference in New Issue
Block a user