Skip to content

Commit 31a43e9

Browse files
committed
fix: exit 1 if pytest is failed
1 parent fe89c30 commit 31a43e9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,9 @@ jobs:
2525
pip install -U pip
2626
pip install '.[dev]'
2727
- uses: pre-commit/action@v2.0.3
28-
- name: Test [wrapper]
29-
if: ${{ always() }}
30-
run: |
31-
pytest test/test_wrapper.py
3228
- name: Test [all]
3329
run: |
3430
pytest |& tee log.txt
35-
grep '^FAILED:' log.txt > fails.txt
36-
# if all failures is not raised in `test.test_wrapper`:
37-
if [ "$(grep 'test/test_wrapper' fails.txt | wc -l)" -ne "$(wc -l < fails.txt)" ]; then
31+
if tail -1 log.txt | grep -q ' failed'; then
3832
exit 1
39-
else
40-
echo 'All of the above failures are maybe false errors.'
41-
echo 'See: https://github.com/RDFLib/sparqlwrapper/issues/192'
4233
fi

0 commit comments

Comments
 (0)