-
Notifications
You must be signed in to change notification settings - Fork 8
63 lines (51 loc) · 1.42 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
name: Build
on:
push:
branches:
- 8.x
pull_request:
branches:
- 8.x
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🏷️
uses: actions/checkout@v3
- name: Set up Node 🕹️
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- name: Install Python 🐍
uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- name: Install dependencies ⚙️
run: python -m pip install -U jupyterlab~=3.0 check-manifest
- name: Build the extension 🏗️
run: |
set -eux
jlpm
jlpm run lint
python -m pip install .
jupyter serverextension list 2>&1 | grep -ie "jupyterlab_h5web.*OK"
jupyter labextension list 2>&1 | grep -ie "jupyterlab-h5web.*OK"
python -m jupyterlab.browser_check
check-manifest -v
pip install build
python -m build
pip uninstall -y jupyterlab_h5web jupyterlab
rm -rf jupyterlab_h5web
- name: Upload debug logs on failure 📬
uses: actions/upload-artifact@v2
if: failure()
with:
name: Build log
path: |
/tmp/*.log
- uses: actions/upload-artifact@v2
with:
name: jupyterlab_h5web-dist
path: dist