@@ -155,3 +155,61 @@ jobs:
155
155
156
156
- name : Validate the labextension
157
157
run : jupyter labextension list 2>&1 | grep jupyter-matplotlib
158
+
159
+
160
+ visual-regression-tests :
161
+ runs-on : ubuntu-latest
162
+ needs : [build]
163
+
164
+ strategy :
165
+ fail-fast : false
166
+
167
+ steps :
168
+
169
+ - name : Checkout
170
+ uses : actions/checkout@v2
171
+
172
+ - name : Setup conda
173
+ uses : conda-incubator/setup-miniconda@v2
174
+ with :
175
+ python-version : 3.9
176
+ mamba-version : " *"
177
+ auto-activate-base : false
178
+ channels : conda-forge
179
+
180
+ - name : Install dependencies
181
+ run : mamba install pip yarn jupyterlab=3.0.11 ipywidgets jupyter-packaging
182
+
183
+ - uses : actions/download-artifact@v2
184
+ with :
185
+ name : dist ${{ github.run_number }}
186
+ path : ./dist
187
+
188
+ - name : Install the package
189
+ run : pip install -vv ipympl*.whl
190
+ working-directory : dist
191
+
192
+ - name : Install test dependencies
193
+ run : yarn install
194
+ working-directory : ui-tests
195
+
196
+ - name : Launch JupyterLab
197
+ run : yarn run start-jlab:detached
198
+ working-directory : ui-tests
199
+
200
+ - name : Wait for JupyterLab
201
+ uses : ifaxity/wait-on-action@v1
202
+ with :
203
+ resource : http-get://localhost:8888/api
204
+ timeout : 20000
205
+
206
+ - name : Run UI Tests
207
+ run : yarn run test
208
+ working-directory : ui-tests
209
+
210
+ - name : Upload UI Test artifacts
211
+ if : always()
212
+ uses : actions/upload-artifact@v2
213
+ with :
214
+ name : ui-test-output
215
+ path : ui-tests/test-output
0 commit comments