File tree Expand file tree Collapse file tree 2 files changed +24
-38
lines changed Expand file tree Collapse file tree 2 files changed +24
-38
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # This workflow will install Python dependencies, and run tests supported versions of Python.
1+ # This workflow will install Python dependencies, lint, and run tests in supported versions of Python.
22# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33
4- name : pytest
4+ name : tests
55
66on :
77 push :
@@ -13,6 +13,7 @@ permissions:
1313 contents : read
1414
1515jobs :
16+
1617 pytest :
1718 strategy :
1819 matrix :
5253 run : |
5354 pytest
5455
56+ flake8 :
57+ runs-on : ubuntu-latest
58+ steps :
59+ - uses : actions/checkout@v4
60+ - name : Set up Python 3.13
61+ uses : actions/setup-python@v5
62+ with :
63+ python-version : 3.13
64+ - name : Display Python verison
65+ run : python -c "import sys; print(sys.version)"
66+ - name : Install dependencies
67+ run : |
68+ python -m pip install --upgrade pip
69+ pip install flake8
70+ - name : Lint with flake8
71+ run : |
72+ # stop the build if there are Python syntax errors or undefined names
73+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
74+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
75+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
76+
You can’t perform that action at this time.
0 commit comments