Skip to content

Commit e24a036

Browse files
committed
Use explicit matrix to configure GH jobs
Excluding PyPy2/3 on Windows for now, as the build is crashing randomly.
1 parent 7ce5a6b commit e24a036

File tree

1 file changed

+70
-28
lines changed

1 file changed

+70
-28
lines changed

.github/workflows/main.yml

Lines changed: 70 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,83 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy-3.7"]
14-
os: [ubuntu-latest, windows-latest]
13+
name: [
14+
"windows-py27",
15+
"windows-py35",
16+
"windows-py36",
17+
"windows-py37",
18+
"windows-py38",
19+
"windows-py39",
20+
21+
"linux-py27",
22+
"linux-py35",
23+
"linux-py36",
24+
"linux-py37",
25+
"linux-py38",
26+
"linux-py39",
27+
28+
"linux-pypy2",
29+
"linux-pypy3",
30+
]
1531
include:
16-
- python: "2.7"
32+
- name: "windows-py27"
33+
python: "2.7"
1734
tox_env: "py27"
18-
- python: "3.5"
35+
os: "windows-latest"
36+
- name: "windows-py35"
37+
python: "3.5"
1938
tox_env: "py35"
20-
- python: "3.6"
39+
os: "windows-latest"
40+
- name: "windows-py36"
41+
python: "3.6"
2142
tox_env: "py36"
22-
- python: "3.7"
43+
os: "windows-latest"
44+
- name: "windows-py37"
45+
python: "3.7"
2346
tox_env: "py37"
24-
- python: "3.8"
47+
os: "windows-latest"
48+
- name: "windows-py38"
49+
python: "3.8"
2550
tox_env: "py38"
26-
- python: "3.9"
51+
os: "windows-latest"
52+
- name: "windows-py39"
53+
python: "3.9"
2754
tox_env: "py39"
28-
- python: "pypy-3.7"
55+
os: "windows-latest"
56+
57+
- name: "linux-py27"
58+
python: "2.7"
59+
tox_env: "py27"
60+
os: "ubuntu-latest"
61+
- name: "linux-py35"
62+
python: "3.5"
63+
tox_env: "py35"
64+
os: "ubuntu-latest"
65+
- name: "linux-py36"
66+
python: "3.6"
67+
tox_env: "py36"
68+
os: "ubuntu-latest"
69+
- name: "linux-py37"
70+
python: "3.7"
71+
tox_env: "py37"
72+
os: "ubuntu-latest"
73+
- name: "linux-py38"
74+
python: "3.8"
75+
tox_env: "py38"
76+
os: "ubuntu-latest"
77+
- name: "linux-py39"
78+
python: "3.9"
79+
tox_env: "py39"
80+
os: "ubuntu-latest"
81+
82+
- name: "linux-pypy2"
83+
python: "pypy-2.7"
84+
tox_env: "pypy2"
85+
os: "ubuntu-latest"
86+
- name: "linux-pypy3"
87+
python: "pypy-3.7"
2988
tox_env: "pypy3"
89+
os: "ubuntu-latest"
3090

3191
steps:
3292
- uses: actions/checkout@v1
@@ -42,31 +102,13 @@ jobs:
42102
run: |
43103
tox -e ${{ matrix.tox_env }}
44104
45-
linting:
46-
47-
runs-on: ubuntu-latest
48-
49-
steps:
50-
- uses: actions/checkout@v1
51-
- name: Set up Python
52-
uses: actions/setup-python@v1
53-
with:
54-
python-version: "3.7"
55-
- name: Install tox
56-
run: |
57-
python -m pip install --upgrade pip
58-
pip install tox
59-
- name: Linting
60-
run: |
61-
tox -e linting
62-
63105
deploy:
64106

65107
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
66108

67109
runs-on: ubuntu-latest
68110

69-
needs: [build, linting]
111+
needs: build
70112

71113
steps:
72114
- uses: actions/checkout@v1

0 commit comments

Comments
 (0)