You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Fail if JupyterLab extension build artifacts are out of date
19
-
steps:
20
-
- run:
21
-
name: Build JupyterLab extension
22
-
command: |
23
-
echo "Building JupyterLab extension..."
24
-
curl -LsSf https://astral.sh/uv/install.sh | sh
25
-
uv venv
26
-
source .venv/bin/activate
27
-
uv pip install jupyter
28
-
cd js
29
-
npm ci
30
-
npm run build
31
-
- run:
32
-
name: Check JupyterLab build artifacts
33
-
command: |
34
-
echo "Checking for uncommitted changes in plotly/labextension/..."
35
-
git diff --exit-code plotly/labextension/ || (echo "Error: JupyterLab build artifacts out of date. Run 'npm run build' in js/ and commit the results." && exit 1)
36
-
37
17
test_core:
38
18
steps:
39
19
- checkout
40
20
- browser-tools/install-chrome
41
21
- browser-tools/install-chromedriver
42
-
- check-js-build
43
22
- run:
44
23
name: Install dependencies
45
24
command: |
@@ -71,7 +50,6 @@ commands:
71
50
- checkout
72
51
- browser-tools/install-chrome
73
52
- browser-tools/install-chromedriver
74
-
- check-js-build
75
53
- run:
76
54
name: Install dependencies
77
55
command: |
@@ -185,6 +163,31 @@ jobs:
185
163
pandas_version: <<parameters.pandas_version>>
186
164
numpy_version: <<parameters.numpy_version>>
187
165
166
+
check-js-build:
167
+
docker:
168
+
- image: cimg/python:3.12-node
169
+
environment:
170
+
LANG: en_US.UTF-8
171
+
resource_class: large
172
+
173
+
steps:
174
+
- checkout
175
+
- run:
176
+
name: Install dependencies
177
+
command: |
178
+
curl -LsSf https://astral.sh/uv/install.sh | sh
179
+
uv venv
180
+
source .venv/bin/activate
181
+
uv pip install -e .
182
+
cd js
183
+
npm ci
184
+
npm run build
185
+
- run:
186
+
name: Check JupyterLab build artifacts
187
+
command: |
188
+
echo "Checking for uncommitted changes in plotly/labextension/..."
189
+
git diff --exit-code plotly/labextension/ || (echo "Error: JupyterLab build artifacts out of date. Run 'npm run build' in js/ and commit the results." && exit 1)
190
+
188
191
# Percy
189
192
python_311_percy:
190
193
docker:
@@ -320,8 +323,6 @@ jobs:
320
323
- checkout
321
324
- browser-tools/install-chrome
322
325
- browser-tools/install-chromedriver
323
-
- check-js-build
324
-
325
326
- run:
326
327
name: Install dependencies
327
328
command: |
@@ -456,3 +457,5 @@ workflows:
456
457
numpy_version: "1.26.4"
457
458
- python_311_percy
458
459
- build-doc
460
+
- check-js-build:
461
+
name: "Check for uncommitted changes in plotly/labextension"
0 commit comments