diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 2d45842..4db0e44 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -31,10 +31,10 @@ jobs: - name: Test with pytest run: | git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* - git diff origin/main HEAD --name-only -- practice | xargs dirname | sort | uniq | xargs pytest + git diff origin/main HEAD --name-only -- 'practice/*' | xargs dirname | sort | uniq | while read dir; do find "$dir" -name '*.py' '!' -path '*/__pycache__/*' -exec pytest {} +; done - 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 + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics \ No newline at end of file