Skip to content

Commit

Permalink
Correct handling of shells for flake8 and pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMathieu committed Apr 1, 2024
1 parent d26ea1e commit 9f590b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
types: [opened, synchronize, reopened]

defaults:
run:
shell: bash -leo pipefail {0}

jobs:
build-linux:
Expand Down Expand Up @@ -36,7 +39,7 @@ jobs:
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --ignore=E501,W503,F841,E203
- name: Test with pytest
run: |
pytest || true

0 comments on commit 9f590b0

Please sign in to comment.