mirror of https://github.com/mvt-project/mvt.git
Fail builds on test failure (#489)
* Fail builds on test failure
* Deliberately fail a build to test
* Revert "Deliberately fail a build to test"
This reverts commit 666140a954
.
This commit is contained in:
parent
f1821d1a02
commit
59e6dff1e1
|
@ -40,7 +40,9 @@ jobs:
|
||||||
- name: Safety checks
|
- name: Safety checks
|
||||||
run: safety check
|
run: safety check
|
||||||
- name: Test with pytest and coverage
|
- name: Test with pytest and coverage
|
||||||
run: pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=mvt tests/ | tee pytest-coverage.txt
|
run: |
|
||||||
|
set -o pipefail
|
||||||
|
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=mvt tests/ | tee pytest-coverage.txt
|
||||||
- name: Pytest coverage comment
|
- name: Pytest coverage comment
|
||||||
continue-on-error: true # Workflows running on a fork can't post comments
|
continue-on-error: true # Workflows running on a fork can't post comments
|
||||||
uses: MishaKav/pytest-coverage-comment@main
|
uses: MishaKav/pytest-coverage-comment@main
|
||||||
|
|
Loading…
Reference in New Issue