8
8
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
9
9
jobs :
10
10
test :
11
- name : Python ${{ matrix.python-version }} x isort ${{ matrix.isort }} x flake8 ${{ matrix.flake8 }}
11
+ name : py- ${{ matrix.python-version }}/ isort- ${{ matrix.isort }}/ flake8- ${{ matrix.flake8 }}
12
12
runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
15
python-version : ["3.10", 3.9, 3.8, 3.7, pypy-3.9]
16
- isort : [4.3.21, 5.10.1]
17
- flake8 : [3.9.2, 4.0.1, 5.0.4]
16
+ isort : [5.10.1]
17
+ flake8 : [5.0.4]
18
+ include :
19
+ - python-version : 3.9
20
+ isort : 5.10.1
21
+ flake8 : 4.0.1
22
+ qa : ' true'
23
+ - python-version : 3.9
24
+ isort : 5.10.1
25
+ flake8 : 3.9.2
26
+
27
+ - python-version : 3.9
28
+ isort : 4.3.21
29
+ flake8 : 5.0.4
30
+ - python-version : 3.9
31
+ isort : 4.3.21
32
+ flake8 : 4.0.1
33
+ - python-version : 3.9
34
+ isort : 4.3.21
35
+ flake8 : 3.9.2
18
36
steps :
19
37
- uses : actions/checkout@v3
20
38
- name : Set up Python
@@ -40,31 +58,31 @@ jobs:
40
58
if : matrix.isort == '4.3.21'
41
59
# formatters
42
60
- name : Run pyupgrade
43
- if : matrix.python-version == '3.9 '
61
+ if : matrix.qa == 'true '
44
62
run : pyupgrade --py37-plus *.py
45
63
- name : Run isort
46
- if : matrix.python-version == '3.9 '
64
+ if : matrix.qa == 'true '
47
65
run : isort --check-only *.py
48
66
- name : Run black
49
- if : matrix.python-version == '3.9 '
67
+ if : matrix.qa == 'true '
50
68
run : black --check --skip-string-normalization *.py
51
69
# linters
52
70
- name : Lint with bandit
53
- if : matrix.python-version == '3.9 '
71
+ if : matrix.qa == 'true '
54
72
run : bandit --skip B101 *.py # B101 is assert statements
55
73
- name : Lint with codespell
56
- if : matrix.python-version == '3.9 '
74
+ if : matrix.qa == 'true '
57
75
run : codespell *.rst *.py
58
76
- name : Lint with flake8
59
- if : matrix.python-version == '3.9 '
77
+ if : matrix.qa == 'true '
60
78
run : flake8 *.py --count --max-complexity=18 --max-line-length=88 --show-source --statistics
61
79
- name : Lint with mypy
62
- if : matrix.python-version == '3.9 '
80
+ if : matrix.qa == 'true '
63
81
run : |
64
82
mkdir --parents --verbose .mypy_cache
65
83
mypy --ignore-missing-imports --install-types --non-interactive *.py || true
66
84
- name : Lint with safety
67
- if : matrix.python-version == '3.9 '
85
+ if : matrix.qa == 'true '
68
86
run : safety check || true
69
87
# tests and coverage
70
88
- name : Test
0 commit comments