@@ -5,35 +5,34 @@ name: Test Suite
55
66on :
77 push :
8- branches : [ main ]
8+ branches : [main]
99 pull_request :
10- branches : [ main ]
10+ branches : [main]
1111
1212jobs :
1313 build :
14-
1514 runs-on : ubuntu-latest
1615 strategy :
1716 matrix :
18- python-version : [3.7, 3. 8, 3.9]
17+ python-version : [3.8, 3.9]
1918
2019 steps :
21- - uses : actions/checkout@v2
22- - name : Set up Python ${{ matrix.python-version }}
23- uses : actions/setup-python@v2
24- with :
25- python-version : ${{ matrix.python-version }}
26- - name : Install dependencies
27- run : |
28- python -m pip install --upgrade pip
29- python -m pip install flake8
30- python ./setup.py install
31- - name : Lint with flake8
32- run : |
33- # stop the build if there are Python syntax errors or undefined names
34- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37- - name : Test
38- run : |
39- python ./setup.py test
20+ - uses : actions/checkout@v2
21+ - name : Set up Python ${{ matrix.python-version }}
22+ uses : actions/setup-python@v3
23+ with :
24+ python-version : ${{ matrix.python-version }}
25+ - name : Install dependencies
26+ run : |
27+ python -m pip install --upgrade pip
28+ python -m pip install flake8
29+ python ./setup.py install
30+ - name : Lint with flake8
31+ run : |
32+ # stop the build if there are Python syntax errors or undefined names
33+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36+ - name : Test
37+ run : |
38+ python ./setup.py test
0 commit comments