@@ -15,15 +15,19 @@ defaults:
15
15
16
16
jobs :
17
17
build :
18
- runs-on : ${{ matrix.os }}-latest
18
+ runs-on : ${{ matrix.os }}
19
19
strategy :
20
20
fail-fast : false
21
21
matrix :
22
- os : [ubuntu, macos, windows]
23
- python-version : [ '3.7', '3.8', '3.10', 'pypy-3.7' ]
24
- exclude :
25
- - os : windows
26
- python-version : pypy-3.7
22
+ os : [ubuntu-latest, windows-latest, macos-latest]
23
+ python-version : ["3.7", "3.10"]
24
+ include :
25
+ - os : windows-latest
26
+ python-version : " 3.9"
27
+ - os : ubuntu-latest
28
+ python-version : " pypy-3.7"
29
+ - os : macos-latest
30
+ python-version : " 3.8"
27
31
steps :
28
32
- name : Checkout
29
33
uses : actions/checkout@v2
@@ -36,12 +40,12 @@ jobs:
36
40
pip install .[test] codecov
37
41
38
42
- name : Install matplotlib
39
- if : ${{ matrix.os != 'macos' && matrix.python-version != 'pypy3' }}
43
+ if : ${{ !startsWith( matrix.os, 'macos') && !startsWith( matrix.python-version, 'pypy') }}
40
44
run : |
41
45
pip install matplotlib || echo 'failed to install matplotlib'
42
46
43
47
- name : Install alternate event loops
44
- if : ${{ matrix.os != 'windows' }}
48
+ if : ${{ !startsWith( matrix.os, 'windows') }}
45
49
run : |
46
50
pip install curio || echo 'ignoring curio install failure'
47
51
pip install trio || echo 'ignoring trio install failure'
@@ -57,32 +61,32 @@ jobs:
57
61
58
62
- name : Run the tests
59
63
timeout-minutes : 15
60
- if : ${{ !startsWith( matrix.python-version, 'pypy' ) && matrix.os != 'windows' }}
64
+ if : ${{ !startsWith( matrix.python-version, 'pypy' ) && !startsWith( matrix.os, 'windows') }}
61
65
run : |
62
- args="- vv -raXxs --cov ipykernel --cov-branch --cov-report term-missing:skip-covered --durations 10 --color=yes"
63
- pytest $args || pytest $args --lf
66
+ cmd="python -m pytest - vv -raXs --cov ipykernel --cov-branch --cov-report term-missing:skip-covered --durations 10 --color=yes"
67
+ $cmd || $cmd --lf
64
68
65
69
- name : Run the tests on pypy and windows
66
70
timeout-minutes : 15
67
- if : ${{ startsWith( matrix.python-version, 'pypy' ) || matrix.os == 'windows' }}
71
+ if : ${{ startsWith( matrix.python-version, 'pypy' ) || startsWith( matrix.os, 'windows') }}
68
72
run : |
69
- args="- vv -raXxs --durations 10 --color=yes"
70
- pytest $args || pytest $args --lf
73
+ cmd="python -m pytest - vv -raXs --durations 10 --color=yes"
74
+ $cmd || $cmd --lf
71
75
72
76
- name : Coverage
73
77
run : |
74
78
codecov
75
79
76
80
test_docs :
77
- runs-on : ${{ matrix.os }}-latest
81
+ runs-on : ${{ matrix.os }}
78
82
strategy :
79
83
fail-fast : false
80
84
matrix :
81
- os : [ubuntu]
85
+ os : [ubuntu-latest ]
82
86
python-version : [ '3.9' ]
83
87
exclude :
84
- - os : windows
85
- python-version : pypy3
88
+ - os : windows-latest
89
+ python-version : pypy-3.7
86
90
steps :
87
91
- name : Checkout
88
92
uses : actions/checkout@v2
91
95
uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
92
96
93
97
- name : Build the docs
94
- if : ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.9'}}
95
98
run : |
96
99
cd docs
97
100
pip install -r requirements.txt
@@ -132,8 +135,8 @@ jobs:
132
135
- name : Run the tests
133
136
timeout-minutes : 10
134
137
run : |
135
- args=" -vv -raXxs --durations 10 --color=yes"
136
- pytest $args || pytest $args --lf
138
+ cmd="python -m pytest -vv -raXxs --durations 10 --color=yes"
139
+ $cmd || $cmd --lf
137
140
138
141
test_miniumum_versions :
139
142
name : Test Minimum Versions
@@ -149,8 +152,8 @@ jobs:
149
152
uses : jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
150
153
- name : Run the unit tests
151
154
run : |
152
- args=" -vv -raXxs --durations 10 --color=yes"
153
- pytest $args || pytest $args --lf
155
+ cmd="python -m pytest -vv -raXxs --durations 10 --color=yes"
156
+ $cmd || $cmd --lf
154
157
155
158
test_prereleases :
156
159
name : Test Prereleases
@@ -170,8 +173,8 @@ jobs:
170
173
pip check
171
174
- name : Run the tests
172
175
run : |
173
- args="- vv -raXxs --durations 10 --color=yes"
174
- pytest $args || pytest $args --lf
176
+ cmd="python -m pytest - vv -raXs --durations 10 --color=yes"
177
+ $cmd || $cmd --lf
175
178
176
179
make_sdist :
177
180
name : Make SDist
@@ -211,5 +214,5 @@ jobs:
211
214
- name : Run Test
212
215
run : |
213
216
cd sdist/test
214
- args="- vv -raXxs --durations 10 --color=yes"
215
- pytest $args || pytest $args --lf
217
+ cmd="python -m pytest - vv -raXs --durations 10 --color=yes"
218
+ $cmd || $cmd --lf
0 commit comments