29
29
30
30
- name : Install the Python dependencies
31
31
run : |
32
- pip install --pre --upgrade --upgrade-strategy=eager .[test] codecov
32
+ pip install .[test] codecov
33
33
34
34
- name : Install matplotlib
35
35
if : ${{ matrix.os != 'macos' && matrix.python-version != 'pypy3' }}
@@ -55,26 +55,22 @@ jobs:
55
55
timeout-minutes : 10
56
56
if : ${{ !startsWith( matrix.python-version, 'pypy' ) }}
57
57
run : |
58
- pytest ipykernel -vv -s --cov ipykernel --cov-branch --cov-report term-missing:skip-covered --durations 10
58
+ args="-vv -raXxs --cov ipykernel --cov-branch --cov-report term-missing:skip-covered --durations 10 --color=yes"
59
+ pytest $args|| pytest $args --lf"
60
+ pytest $args || pytest $args --lf
59
61
60
62
- name : Run the tests on pypy
61
63
timeout-minutes : 15
62
64
if : ${{ startsWith( matrix.python-version, 'pypy' ) }}
63
65
run : |
64
- pytest -vv ipykernel
65
-
66
- - name : Build the docs
67
- if : ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.9'}}
68
- run : |
69
- cd docs
70
- pip install -r requirements.txt
71
- make html
66
+ args="-vv -raXxs --durations 10 --color=yes"
67
+ pytest $args || pytest $args --lf
72
68
73
69
- name : Coverage
74
70
run : |
75
71
codecov
76
72
77
- check_docstrings :
73
+ test_docs :
78
74
runs-on : ${{ matrix.os }}-latest
79
75
strategy :
80
76
fail-fast : false
91
87
- name : Base Setup
92
88
uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
93
89
90
+ - name : Build the docs
91
+ if : ${{ matrix.os == 'ubuntu' && matrix.python-version == '3.9'}}
92
+ run : |
93
+ cd docs
94
+ pip install -r requirements.txt
95
+ make html SPHINXOPTS="-W"
96
+
94
97
- name : Install the Python dependencies
95
98
run : |
96
- pip install --pre --upgrade --upgrade-strategy=eager .
99
+ pip install .
97
100
pip install velin
98
101
99
102
- name : Check Docstrings
@@ -116,7 +119,7 @@ jobs:
116
119
117
120
- name : Install the Python dependencies without debugpy
118
121
run : |
119
- pip install --pre --upgrade --upgrade-strategy=eager .[test]
122
+ pip install .[test]
120
123
pip uninstall --yes debugpy
121
124
122
125
- name : List installed packages
@@ -126,4 +129,84 @@ jobs:
126
129
- name : Run the tests
127
130
timeout-minutes : 10
128
131
run : |
129
- pytest ipykernel -vv -s --durations 10
132
+ args="-vv -raXxs --durations 10 --color=yes"
133
+ pytest $args || pytest $args --lf
134
+
135
+ test_miniumum_versions :
136
+ name : Test Minimum Versions
137
+ timeout-minutes : 20
138
+ runs-on : ubuntu-latest
139
+ steps :
140
+ - uses : actions/checkout@v2
141
+ - name : Base Setup
142
+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
143
+ with :
144
+ python_version : " 3.7"
145
+ - name : Install miniumum versions
146
+ uses : jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
147
+ - name : Run the unit tests
148
+ run : |
149
+ args="-vv -raXxs --durations 10 --color=yes"
150
+ pytest $args|| pytest $args --lf
151
+
152
+ test_prereleases :
153
+ name : Test Prereleases
154
+ runs-on : ubuntu-latest
155
+ timeout-minutes : 20
156
+ steps :
157
+ - name : Checkout
158
+ uses : actions/checkout@v2
159
+ - name : Base Setup
160
+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
161
+ - name : Install the Python dependencies
162
+ run : |
163
+ pip install --pre -e ".[test]"
164
+ - name : List installed packages
165
+ run : |
166
+ pip freeze
167
+ pip check
168
+ - name : Run the tests
169
+ run : |
170
+ args="-vv -raXxs --durations 10 --color=yes"
171
+ pytest $args|| pytest $args --lf
172
+
173
+ make_sdist :
174
+ name : Make SDist
175
+ runs-on : ubuntu-latest
176
+ timeout-minutes : 20
177
+ steps :
178
+ - uses : actions/checkout@v2
179
+ - name : Base Setup
180
+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
181
+ - name : Build SDist
182
+ run : |
183
+ pip install build
184
+ python -m build --sdist
185
+ - uses : actions/upload-artifact@v2
186
+ with :
187
+ name : " sdist"
188
+ path : dist/*.tar.gz
189
+
190
+ test_sdist :
191
+ runs-on : ubuntu-latest
192
+ needs : [make_sdist]
193
+ name : Install from SDist and Test
194
+ timeout-minutes : 20
195
+ steps :
196
+ - name : Base Setup
197
+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
198
+ - name : Download sdist
199
+ uses : actions/download-artifact@v2
200
+ - name : Install From SDist
201
+ run : |
202
+ set -ex
203
+ cd sdist
204
+ mkdir test
205
+ tar --strip-components=1 -zxvf *.tar.gz -C ./test
206
+ cd test
207
+ pip install .[test]
208
+ - name : Run Test
209
+ run : |
210
+ cd sdist/test
211
+ args="-vv -raXxs --durations 10 --color=yes"
212
+ pytest $args|| pytest $args --lf
0 commit comments