mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-10 16:07:44 -06:00
fix module target for coverage, add junit XML output, set pipefail to prevent exit code hiding
This commit is contained in:
3
.github/workflows/test.yaml
vendored
3
.github/workflows/test.yaml
vendored
@@ -38,7 +38,8 @@ jobs:
|
||||
- name: Pytest
|
||||
run: |
|
||||
cd backend
|
||||
poetry run pytest --color=yes --cov-report=term-missing:skip-covered --cov=app tests/ | tee pytest-coverage.txt
|
||||
set -o pipefail # otherwise 'tee' will eat the exit code
|
||||
poetry run pytest --color=yes --cov=linkpulse --cov-report=term-missing:skip-covered --junitxml=pytest.xml | tee pytest-coverage.txt
|
||||
|
||||
- name: Pytest coverage comment
|
||||
id: coverageComment
|
||||
|
||||
Reference in New Issue
Block a user