9
9
jobs :
10
10
build_extensions :
11
11
runs-on : ${{ matrix.os }}
12
+
12
13
strategy :
13
14
fail-fast : false
14
15
matrix :
31
32
- toolbar-button
32
33
- widgets
33
34
os : [ubuntu-latest, macos-latest, windows-latest]
35
+
36
+ defaults :
37
+ run :
38
+ working-directory : ${{ matrix.example }}
39
+
34
40
steps :
35
41
- name : Checkout
36
42
uses : actions/checkout@v2
@@ -54,12 +60,10 @@ jobs:
54
60
- name : Check config files
55
61
if : steps.filter.outputs.extension == 'true'
56
62
run : |
57
- diff hello-world/tsconfig.json ${EXAMPLE_FOLDER}/tsconfig.json
58
- diff hello-world/.eslintignore ${EXAMPLE_FOLDER}/.eslintignore
59
- diff hello-world/.eslintrc.js ${EXAMPLE_FOLDER}/.eslintrc.js
60
- diff hello-world/.gitignore ${EXAMPLE_FOLDER}/.gitignore
61
- env :
62
- EXAMPLE_FOLDER : ${{ matrix.example }}
63
+ diff ../hello-world/tsconfig.json tsconfig.json
64
+ diff ../hello-world/.eslintignore .eslintignore
65
+ diff ../hello-world/.eslintrc.js .eslintrc.js
66
+ diff ../hello-world/.gitignore .gitignore
63
67
shell : bash
64
68
- name : Install node
65
69
if : steps.filter.outputs.extension == 'true'
@@ -89,33 +93,20 @@ jobs:
89
93
- name : Install the Python dependencies
90
94
if : steps.filter.outputs.extension == 'true'
91
95
run : |
92
- python -m pip install --upgrade pip jupyter_packaging~=0.7.9 jupyterlab~=3.0
96
+ python -m pip install --upgrade pip jupyter_packaging~=0.10 jupyterlab~=3.0
93
97
- name : Install the NPM dependencies
94
98
if : steps.filter.outputs.extension == 'true'
95
- run : |
96
- cd ${EXAMPLE_FOLDER}
97
- jlpm
98
- env :
99
- EXAMPLE_FOLDER : ${{ matrix.example }}
100
- shell : bash
99
+ run : jlpm
101
100
- name : Lint the files
102
101
if : steps.filter.outputs.extension == 'true'
103
- run : |
104
- cd ${EXAMPLE_FOLDER}
105
- jlpm run eslint:check
106
- env :
107
- EXAMPLE_FOLDER : ${{ matrix.example }}
108
- shell : bash
102
+ run : jlpm run eslint:check
109
103
- name : Build and check by extension
110
- if : steps.filter.outputs.extension == 'true'
111
104
run : |
112
- cd ${EXAMPLE_FOLDER}
113
- pip install -e .
114
- jupyter labextension list 2>&1 | grep -ie "@jupyterlab-examples/*.*OK"
105
+ pip install . -vvv
106
+ jupyter labextension list 2>&1 | tee labextension.list
107
+ cat labextension. list | grep -ie "@jupyterlab-examples/*.*OK"
115
108
python -m jupyterlab.browser_check
116
109
pip uninstall -y $(python setup.py --name)
117
- env :
118
- EXAMPLE_FOLDER : ${{ matrix.example }}
119
110
shell : bash
120
111
121
112
build_serverextension :
@@ -179,7 +170,7 @@ jobs:
179
170
- name : Install the Python dependencies
180
171
if : steps.filter.outputs.extension == 'true'
181
172
run : |
182
- python -m pip install --upgrade pip jupyter_packaging~=0.7.9 jupyterlab~=3.0
173
+ python -m pip install --upgrade pip jupyter_packaging~=0.10 jupyterlab~=3.0
183
174
- name : Install the NPM dependencies
184
175
if : steps.filter.outputs.extension == 'true'
185
176
run : |
@@ -201,8 +192,10 @@ jobs:
201
192
- name : Check extension as dev
202
193
if : steps.filter.outputs.extension == 'true' && ( startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS') )
203
194
run : |
204
- jupyter server extension list 2>&1 | grep -ie "jlab_ext_example.*OK"
205
- jupyter labextension list 2>&1 | grep -ie "@jupyterlab-examples/server-extension.*OK"
195
+ jupyter server extension list 2>&1 | tee serverextension.list
196
+ cat serverextension.list | grep -ie "jlab_ext_example.*OK"
197
+ jupyter labextension list 2>&1 | tee labextension.list
198
+ cat labextension.list | grep -ie "@jupyterlab-examples/server-extension.*OK"
206
199
- name : Clean extension installation
207
200
if : steps.filter.outputs.extension == 'true'
208
201
run : |
@@ -214,12 +207,14 @@ jobs:
214
207
if : steps.filter.outputs.extension == 'true'
215
208
run : |
216
209
cd server-extension
217
- pip install -e .
210
+ pip install .
218
211
- name : Check extension as dev
219
212
if : steps.filter.outputs.extension == 'true' && ( startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS') )
220
213
run : |
221
- jupyter server extension list 2>&1 | grep -ie "jlab_ext_example.*OK"
222
- jupyter labextension list 2>&1 | grep -ie "@jupyterlab-examples/server-extension.*OK"
214
+ jupyter server extension list 2>&1 | tee serverextension.list
215
+ cat serverextension.list | grep -ie "jlab_ext_example.*OK"
216
+ jupyter labextension list 2>&1 | tee labextension.list
217
+ cat labextension.list | grep -ie "@jupyterlab-examples/server-extension.*OK"
223
218
python -m jupyterlab.browser_check
224
219
225
220
build_all :
@@ -262,7 +257,7 @@ jobs:
262
257
restore-keys : |
263
258
${{ runner.os }}-pip-
264
259
- name : Install the Python dependencies
265
- run : python -m pip install jupyter_packaging~=0.7.9 jupyterlab~=3.0 pytest pytest-check-links
260
+ run : python -m pip install jupyter_packaging~=0.10 jupyterlab~=3.0 pytest pytest-check-links
266
261
- name : Bootstrap the jlpm deps
267
262
run : jlpm
268
263
- name : Build all the extensions
0 commit comments