mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-06 11:15:34 -06:00
Fix test failing due to missing env ENVIRONMENT variable
This commit is contained in:
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@@ -64,6 +64,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd backend
|
cd backend
|
||||||
set -o pipefail # otherwise 'tee' will eat the exit code
|
set -o pipefail # otherwise 'tee' will eat the exit code
|
||||||
|
# TODO: Switch away from using the ENVIRONMENT variable during pytest or for anything at runtime
|
||||||
|
export ENVIRONMENT=development
|
||||||
poetry run pytest -n $(nproc) --color=yes --cov=linkpulse --cov-report=term-missing:skip-covered --junitxml=pytest.xml | tee pytest-coverage.txt
|
poetry run pytest -n $(nproc) --color=yes --cov=linkpulse --cov-report=term-missing:skip-covered --junitxml=pytest.xml | tee pytest-coverage.txt
|
||||||
|
|
||||||
# pytest-coverage-comment won't error if the files are missing
|
# pytest-coverage-comment won't error if the files are missing
|
||||||
|
|||||||
Reference in New Issue
Block a user