Skip to content

Commit

Permalink
Make flake8 tests fail the test
Browse files Browse the repository at this point in the history
  • Loading branch information
mohithg committed Jun 20, 2021
1 parent 032f2a9 commit 83b1d29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -34,8 +34,14 @@ jobs:
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# Save exit code into variable
t1=$?
# 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
# Save exit code into variable
t2=$1
# Return exit status of both the flake8 tests
$t1 || $t2 || exit 1
- name: Setup env for tests
run: |
git config --global user.email "you@example.com"
Expand Down

0 comments on commit 83b1d29

Please sign in to comment.