@@ -20,12 +20,13 @@ jobs:
20
20
name : build
21
21
runs-on : ubuntu-latest
22
22
steps :
23
- - uses : actions/checkout@v2
24
- - name : Set up Python
23
+ - name : Check out
24
+ uses : actions/checkout@v2
25
+ - name : Set up python
25
26
uses : actions/setup-python@v2
26
27
with :
27
28
python-version : 3.9
28
- - name : Set up Node
29
+ - name : Set up node
29
30
uses : actions/setup-node@v2
30
31
with :
31
32
node : 14.x
@@ -59,20 +60,21 @@ jobs:
59
60
name : docs
60
61
runs-on : ubuntu-latest
61
62
steps :
62
- - uses : actions/checkout@v2
63
+ - name : Check out
64
+ uses : actions/checkout@v2
63
65
- name : Install apt dependencies
64
66
run : |
65
67
set -eux
66
68
sudo apt install pandoc
67
- - name : Set up Python
69
+ - name : Set up python
68
70
uses : actions/setup-python@v2
69
71
with :
70
72
python-version : 3.9
71
73
- name : Install packaging dependencies
72
74
run : |
73
75
set -eux
74
76
python -m pip install -vv -U --user pip wheel setuptools
75
- - name : Set up Node
77
+ - name : Set up node
76
78
uses : actions/setup-node@v2
77
79
with :
78
80
node : 14.x
@@ -129,12 +131,19 @@ jobs:
129
131
- os : ubuntu
130
132
py_cmd : python
131
133
steps :
132
- - uses : actions/checkout@v2
133
- - name : Set up Python
134
+ - name : Check out
135
+ uses : actions/checkout@v2
136
+ - name : Set up python
134
137
uses : actions/setup-python@v2
135
138
with :
136
139
python-version : 3.8
137
- - uses : actions/download-artifact@v2
140
+ - if : ${{ matrix.node }}
141
+ name : Set up node
142
+ uses : actions/setup-node@v2
143
+ with :
144
+ node : ${{ matrix.node }}
145
+ - name : Download distributions
146
+ uses : actions/download-artifact@v2
138
147
with :
139
148
name : dist ${{ github.run_number }}
140
149
path : ./dist
@@ -161,25 +170,24 @@ jobs:
161
170
# explicit file installs don't support extras, skimage brings most along
162
171
run : |
163
172
set -eux
164
- ${{ matrix.py_cmd }} -m pip install -vv nbval scikit-image ipywebrtc
173
+ ${{ matrix.py_cmd }} -m pip install -vv nbval scikit-image ipywebrtc pytest-cov codecov
165
174
- name : Run python tests
166
175
# remove the source directory to avoid surprises
167
176
run : |
168
177
set -eux
169
178
rm -rf pythreejs
170
- ${{ matrix.py_cmd }} -m pytest -vv -l --nbval-lax --current-env .
171
- - name : Check nbextension
179
+ ${{ matrix.py_cmd }} -m pytest -vv -l --nbval-lax --current-env . --cov pythreejs --cov-report term-missing:skip-covered --no-cov-on-fail
180
+ - name : Upload coverage
181
+ run : |
182
+ set -eux
183
+ codecov
184
+ - name : Check notebook extension
172
185
run : |
173
186
set -eux
174
187
jupyter nbextension list
175
188
jupyter nbextension list 2>&1 | grep -ie "jupyter-threejs/extension.*enabled" -
176
189
- if : ${{ matrix.node }}
177
- name : Set up Node
178
- uses : actions/setup-node@v2
179
- with :
180
- node : ${{ matrix.node }}
181
- - if : ${{ matrix.node }}
182
- name : Install labextension
190
+ name : Install lab extension
183
191
run : |
184
192
set -eux
185
193
jupyter labextension install --no-build --debug ./dist/*.tgz @jupyter-widgets/jupyterlab-manager
@@ -191,7 +199,7 @@ jobs:
191
199
set -eux
192
200
jupyter lab build --debug
193
201
- if : ${{ matrix.lab }}
194
- name : Check labextension
202
+ name : Check lab extension
195
203
run : |
196
204
set -eux
197
205
jupyter labextension list
0 commit comments