-
Notifications
You must be signed in to change notification settings - Fork 39
48 lines (39 loc) · 1000 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.9]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip'
cache-dependency-path: setup.py
- run: pip install jupyterlab pytest nbval jupyter_packaging
- run: pip install -ve .
- run: jupyter labextension develop . --overwrite
- name: Check labextension
shell: bash -l {0}
run: jupyter labextension list 2>&1 | grep -ie "@jupyter-widgets/jupyterlab-sidecar.*enabled.*ok" -
- name: Run notebooks
shell: bash -l {0}
run: pytest .