@@ -20,12 +20,13 @@ jobs:
2020 name : build
2121 runs-on : ubuntu-latest
2222 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
2526 uses : actions/setup-python@v2
2627 with :
2728 python-version : 3.9
28- - name : Set up Node
29+ - name : Set up node
2930 uses : actions/setup-node@v2
3031 with :
3132 node : 14.x
@@ -59,20 +60,21 @@ jobs:
5960 name : docs
6061 runs-on : ubuntu-latest
6162 steps :
62- - uses : actions/checkout@v2
63+ - name : Check out
64+ uses : actions/checkout@v2
6365 - name : Install apt dependencies
6466 run : |
6567 set -eux
6668 sudo apt install pandoc
67- - name : Set up Python
69+ - name : Set up python
6870 uses : actions/setup-python@v2
6971 with :
7072 python-version : 3.9
7173 - name : Install packaging dependencies
7274 run : |
7375 set -eux
7476 python -m pip install -vv -U --user pip wheel setuptools
75- - name : Set up Node
77+ - name : Set up node
7678 uses : actions/setup-node@v2
7779 with :
7880 node : 14.x
@@ -129,12 +131,19 @@ jobs:
129131 - os : ubuntu
130132 py_cmd : python
131133 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
134137 uses : actions/setup-python@v2
135138 with :
136139 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
138147 with :
139148 name : dist ${{ github.run_number }}
140149 path : ./dist
@@ -161,25 +170,24 @@ jobs:
161170 # explicit file installs don't support extras, skimage brings most along
162171 run : |
163172 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
165174 - name : Run python tests
166175 # remove the source directory to avoid surprises
167176 run : |
168177 set -eux
169178 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
172185 run : |
173186 set -eux
174187 jupyter nbextension list
175188 jupyter nbextension list 2>&1 | grep -ie "jupyter-threejs/extension.*enabled" -
176189 - 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
183191 run : |
184192 set -eux
185193 jupyter labextension install --no-build --debug ./dist/*.tgz @jupyter-widgets/jupyterlab-manager
@@ -191,7 +199,7 @@ jobs:
191199 set -eux
192200 jupyter lab build --debug
193201 - if : ${{ matrix.lab }}
194- name : Check labextension
202+ name : Check lab extension
195203 run : |
196204 set -eux
197205 jupyter labextension list
0 commit comments