File tree Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ name: Run tests
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build :
6
+ lint :
7
7
8
8
runs-on : ubuntu-latest
9
9
strategy :
10
10
matrix :
11
- python-version : [3.7, 3.8, 3.9, '3.10']
12
-
11
+ python-version : [3.7]
13
12
steps :
14
13
- uses : actions/checkout@v2
15
14
35
34
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36
35
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37
36
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37
+ - name : Black fmt
38
+ run : |
39
+ black --check .
40
+ - name : Check imports
41
+ run : |
42
+ isort --check .
43
+
44
+ test :
45
+
46
+ runs-on : ubuntu-latest
47
+ strategy :
48
+ matrix :
49
+ python-version : [3.7, 3.8, 3.9, '3.10']
50
+ steps :
51
+ - uses : actions/checkout@v2
52
+
53
+ - name : Cleanup pre-installed tools
54
+ run : |
55
+ # This is a fix for https://github.com/actions/virtual-environments/issues/1918
56
+ sudo rm -rf /usr/share/dotnet
57
+ sudo rm -rf /opt/ghc
58
+ sudo rm -rf "/usr/local/share/boost"
59
+ sudo rm -rf "$AGENT_TOOLSDIRECTORY"
60
+ - name : Set up Python ${{ matrix.python-version }}
61
+ uses : actions/setup-python@v2
62
+ with :
63
+ python-version : ${{ matrix.python-version }}
64
+ - name : Install dependencies
65
+ run : |
66
+ python -m pip install --upgrade pip
67
+ python -m pip install -r tests/requirements.txt
68
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
38
69
- name : Test with pytest
39
70
run : |
40
71
tox -- --tag=ci
You can’t perform that action at this time.
0 commit comments