mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-06 09:15:32 -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: |
|
||||
cd backend
|
||||
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
|
||||
|
||||
# pytest-coverage-comment won't error if the files are missing
|
||||
|
||||
Reference in New Issue
Block a user