From 91227b149f0da16c569a0dfcd25382e41c25a6bf Mon Sep 17 00:00:00 2001 From: Whodiduexpect <53096512+Whodiduexpect@users.noreply.github.com> Date: Sat, 29 Feb 2020 19:46:17 -0800 Subject: [PATCH] Update pythonapp.yml --- .github/workflows/pythonapp.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index a5aec8f..d32ae04 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -1,4 +1,4 @@ -name: Test + Style +name: Test on: pull_request: @@ -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