File tree Expand file tree Collapse file tree 1 file changed +30
-33
lines changed Expand file tree Collapse file tree 1 file changed +30
-33
lines changed Original file line number Diff line number Diff line change 1
1
name : Run checks
2
+
2
3
on : [push, pull_request]
4
+
3
5
jobs :
4
- tox :
5
- runs-on : ubuntu-latest
6
- strategy :
7
- matrix :
8
- environment :
9
- # Run tests with Python 3.6
10
- - " py36"
11
- # Run tests with Python 3.7
12
- - " py37"
13
- # Run code checks
14
- - " flake8"
15
- # Run static type checker
16
- - " mypy"
17
- include :
18
- - environment : " py36"
19
- python : " 3.6"
20
- - environment : " py37"
21
- python : " 3.7"
22
- - environment : " flake8"
23
- python : " 3.7"
24
- - environment : " mypy"
25
- python : " 3.7"
26
- container :
27
- image : python:${{ matrix.python }}
28
- steps :
29
- - uses : actions/checkout@master
30
- - name : Install tox
31
- run : |
32
- python -m pip install --upgrade pip
33
- pip install tox
34
- - name : Run tox
35
- run : |
36
- tox -e ${{ matrix.environment }}
6
+ tox :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ matrix :
10
+ environment : ["py36", "py37", "flake8", "mypy"]
11
+
12
+ include :
13
+ - environment : " py36"
14
+ python : " 3.6"
15
+ - environment : " py37"
16
+ python : " 3.7"
17
+ - environment : " flake8"
18
+ python : " 3.7"
19
+ - environment : " mypy"
20
+ python : " 3.7"
21
+
22
+ container :
23
+ image : python:${{ matrix.python }}
24
+
25
+ steps :
26
+ - uses : actions/checkout@master
27
+ - name : Install tox
28
+ run : |
29
+ python -m pip install --upgrade pip
30
+ python -m pip install tox
31
+ - name : Run tox
32
+ run : |
33
+ tox -e ${{ matrix.environment }}
You can’t perform that action at this time.
0 commit comments