File tree 2 files changed +24
-38
lines changed
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.
2
2
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
3
4
- name : pytest
4
+ name : tests
5
5
6
6
on :
7
7
push :
@@ -13,6 +13,7 @@ permissions:
13
13
contents : read
14
14
15
15
jobs :
16
+
16
17
pytest :
17
18
strategy :
18
19
matrix :
52
53
run : |
53
54
pytest
54
55
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