File tree 1 file changed +38
-0
lines changed
1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Python package
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+ build :
11
+ strategy :
12
+ fail-fast : false
13
+ matrix :
14
+ os : [ubuntu-latest, macos-latest, windows-latest]
15
+ python-version : ["3.9", "3.10", "3.11"]
16
+
17
+ runs-on : ${{ matrix.os }}
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - name : Set up Python ${{ matrix.python-version }}
21
+ uses : actions/setup-python@v3
22
+ with :
23
+ python-version : ${{ matrix.python-version }}
24
+ - name : Install dependencies
25
+ run : |
26
+ cd simple-packaging
27
+ python -m pip install --upgrade pip
28
+ pip install .
29
+ pip install flake8 pytest
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 with pytest
37
+ run : |
38
+ pytest .
You can’t perform that action at this time.
0 commit comments