File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1- # This workflow will install Python dependencies, run tests and lint with a single version of Python
1+ # This workflow will install Python dependencies and lint with a single version of Python
22# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33
44name : Python application
@@ -14,9 +14,11 @@ permissions:
1414
1515jobs :
1616 build :
17-
18- runs-on : ubuntu-latest
19-
17+ runs-on : ${{ matrix.os }}
18+ strategy :
19+ matrix :
20+ os : [ubuntu-latest, windows-latest]
21+
2022 steps :
2123 - uses : actions/checkout@v4
2224 - name : Set up Python 3.10
@@ -26,14 +28,13 @@ jobs:
2628 - name : Install dependencies
2729 run : |
2830 python -m pip install --upgrade pip
29- pip install flake8 pytest
31+ pip install flake8
3032 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33+ shell : bash
3134 - name : Lint with flake8
3235 run : |
3336 # stop the build if there are Python syntax errors or undefined names
3437 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3538 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3639 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37- - name : Test with pytest
38- run : |
39- pytest
40+ shell : bash
You can’t perform that action at this time.
0 commit comments