Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
Update pythonapp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Whodiduexpect authored Mar 1, 2020
1 parent fa2c54e commit 91227b1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test + Style
name: Test

on:
pull_request:
Expand All @@ -23,9 +23,13 @@ jobs:
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install --upgrade autopep8
autopep8 --in-place --aggressive --aggressive $(find . -name "*.py")
pip install flake8
# 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: Test with pytest
run: |
pip install pytest
export PYTHONPATH=/you/home/runner/work/assignment-list/assignment-list
pytest

0 comments on commit 91227b1

Please sign in to comment.