-
Notifications
You must be signed in to change notification settings - Fork 102
40 lines (33 loc) · 1.35 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
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install dependencies
run: python -m pip install jupyterlab~=4.0 nbclassic~=1.0
- name: Install the extension
run: |
python -m pip install .
jupyter server extension enable --py jupyter_resource_usage --sys-prefix
jupyter nbclassic-serverextension enable --py jupyter_resource_usage --sys-prefix
jupyter nbclassic-extension install --py jupyter_resource_usage --sys-prefix
jupyter nbclassic-extension enable --py jupyter_resource_usage --sys-prefix
- name: Check the server, classic and lab extensions are installed
run: |
jupyter server extension list 2>&1 | grep -ie "jupyter_resource_usage.*enabled"
jupyter nbclassic-serverextension list 2>&1 | grep -ie "jupyter_resource_usage.*enabled"
jupyter nbclassic-extension list 2>&1 | grep -ie "jupyter_resource_usage/main.*enabled"
jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "@jupyter-server/resource-usage.*OK"
python -m jupyterlab.browser_check