Skip to content

Commit 6317da0

Browse files
committed
Fail the CI if tests are failing
MishaKav/pytest-coverage-comment#69 (comment)
1 parent 1103c3b commit 6317da0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
pip install -e ".[dev]"
4545
- name: Run tests
4646
run: |
47+
set -o pipefail
4748
py.test --cov --junitxml=pytest.xml --cov-report=term-missing:skip-covered | tee pytest-coverage.txt
4849
- if: ${{ strategy.job-index == 0 }}
4950
name: Pytest coverage comment

0 commit comments

Comments
 (0)