-
Notifications
You must be signed in to change notification settings - Fork 950
69 lines (56 loc) · 1.64 KB
/
build.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build jupyterlab_widgets
on:
push:
branches: main
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
architecture: 'x64'
- name: Cache pip on Linux
uses: actions/cache@v3
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python }}
- name: Install build dependencies
run: |
python -m pip install jupyterlab jupyter_packaging~=0.10
- name: Install node dependencies
run: |
jlpm
- name: Build node packages
run: |
jlpm build
- name: Install jupyterlab_widgets
run: |
cd python/jupyterlab_widgets
pip install -vv -e . --no-deps
- name: Install widgetsnbextension
run: |
cd python/widgetsnbextension
pip install -vv -e . --no-deps
- name: Install ipywidgets
run: |
cd python/ipywidgets
pip install -vv . --no-deps
- name: Install development extension
run: |
cd python/jupyterlab_widgets
jupyter labextension develop . --overwrite
- name: List labextensions
run: |
jupyter labextension list
- name: Run JupyterLab browser check
run: |
python -m jupyterlab.browser_check