Skip to content

Commit

Permalink
ci: use bash on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Oct 30, 2023
1 parent b277ed7 commit d9d3889
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,16 @@ jobs:
run: |
python -m dcoraid --version
- name: Test with pytest
# Use bash on Windows, otherwise || exit 0 does not work
shell: bash
env:
DCOR_API_KEY: ${{ secrets.DCOR_API_KEY }}
# Tests always pass but pytest sometimes fails with 138 or 139 due to
# threading issues. We check in the next step whether any tests failed.
run: |
coverage run --source=dcoraid -m pytest tests --ignore tests/test_gui.py -x
coverage run --source=dcoraid -m pytest tests/test_gui.py -x
# The GUI tests segfault randomly (test in next step whether it worked)
coverage run --source=dcoraid -m pytest tests/test_gui.py -x || exit 0
- name: Test whether test passed
# check if pytest wrote failures to the "pytest-failures.txt" file
# (exits 0 if the file does not exist)
Expand Down

0 comments on commit d9d3889

Please sign in to comment.