File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : Code Quality
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ testing :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Set up Python 3.9
17
+ uses : actions/setup-python@v2
18
+ with :
19
+ python-version : 3.9
20
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install -r test-requirements.txt
24
+ pip install flake8 pytest
25
+ - name : Flake8
26
+ run : |
27
+ # stop the build if there are Python syntax errors or undefined names
28
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31
+ - name : Pytest
32
+ run : |
33
+ pytest
34
+
35
+ compatibilityCheck :
36
+ name : Compatibility Check
37
+
38
+ runs-on : ubuntu-latest
39
+
40
+ strategy :
41
+ max-parallel : 4
42
+ matrix :
43
+ python-version : [3.5, 3.6, 3.7, 3.8]
44
+
45
+ steps :
46
+ - name : Set up Python ${{ matrix.python-version }}
47
+ uses : actions/setup-python@v2
48
+ with :
49
+ python-version : ${{ matrix.python-version }}
50
+ - name : " Git checkout"
51
+ uses : actions/checkout@v2
52
+ - name : Install dependencies
53
+ run : |
54
+ python -m pip install --upgrade pip
55
+ pip install -r test-requirements.txt
56
+ pip install pytest
57
+ - name : Run tests
58
+ run : |
59
+ pytest
You can’t perform that action at this time.
0 commit comments