Skip to content

Commit 539c723

Browse files
committed
fix github action workflow
1 parent 5f2e387 commit 539c723

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Test
2-
32
on:
43
push:
54
branches: ["master"]
@@ -20,25 +19,18 @@ jobs:
2019
uses: actions/setup-python@v5
2120
with:
2221
python-version: ${{ matrix.python-version }}
22+
2323
- name: Install dependencies
2424
run: |
2525
pip install -U pip
2626
pip install '.[dev]'
27+
2728
- name: Mypy
28-
run: |
29-
mypy --show-error-context
29+
run: mypy --show-error-context
30+
3031
- name: Test [wrapper]
3132
if: ${{ always() }}
32-
run: |
33-
pytest test/test_wrapper.py
33+
run: pytest test/test_wrapper.py
34+
3435
- name: Test [all]
35-
run: |
36-
pytest |& tee log.txt
37-
grep '^FAIL:' log.txt > fails.txt
38-
# if all failures is not raised in `test.test_wrapper`:
39-
if [ "$(grep 'test.test_wrapper' fails.txt | wc -l)" -ne "$(wc -l < fails.txt)" ]; then
40-
exit 1
41-
else
42-
echo 'All of the above failures are maybe false errors.'
43-
echo 'See: https://github.com/RDFLib/sparqlwrapper/issues/192'
44-
fi
36+
run: pytest

0 commit comments

Comments
 (0)