Skip to content

Commit

Permalink
Run unit tests and fail on failure in Github Action (#55)
Browse files Browse the repository at this point in the history
* Run unit tests and fail on failure in Github Action

* Actually install the dependencies in the Github Action
  • Loading branch information
davemevans committed Dec 7, 2021
1 parent bd4a3c7 commit 0b21694
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,16 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install build flake8
python -m pip install -r requirements.txt
- name: Lint with flake8
run: |
# 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
- name: Run tests
run: |
python -m unittest discover
- name: Build
run: |
python -m build

0 comments on commit 0b21694

Please sign in to comment.