@@ -44,10 +44,10 @@ jobs:
44
44
matrix :
45
45
os : [ubuntu]
46
46
nodejs : ['>=14,<15.0.0a0']
47
- lab : ['>=3.1 .0,<4.0.0a0']
47
+ lab : ['>=3.3 .0,<4.0.0a0']
48
48
r : ['>=4']
49
49
steps :
50
- - uses : actions/checkout@v2
50
+ - uses : actions/checkout@v3
51
51
52
52
- uses : cschleiden/replace-tokens@v1
53
53
with :
58
58
lab : ' ${{ matrix.lab }}'
59
59
nodejs : ' ${{ matrix.nodejs }}'
60
60
61
- - name : Cache conda
62
- uses : actions/cache@v2
63
- with :
64
- path : ~/conda_pkgs_dir
65
- key : |
66
- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-lint-${{ hashFiles('requirements/github-actions.yml', 'requirements/lint.yml') }}
67
- restore-keys : |
68
- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-lint-
69
-
70
61
- name : Set up Python and mamba
71
62
uses : conda-incubator/setup-miniconda@v2
72
63
with :
82
73
83
74
- name : Cache node_modules
84
75
id : cache-node-modules
85
- uses : actions/cache@v2
76
+ uses : actions/cache@v3
86
77
with :
87
78
path : ' **/node_modules'
88
79
key : |
91
82
- name : Cache yarn packages
92
83
id : cache-yarn-packages
93
84
if : steps.cache-node-modules.outputs.cache-hit != 'true'
94
- uses : actions/cache@v2
85
+ uses : actions/cache@v3
95
86
with :
96
87
path : .yarn-packages
97
88
key : |
@@ -122,6 +113,10 @@ jobs:
122
113
- name : Check distributions
123
114
run : python scripts/distcheck.py
124
115
116
+ - name : Rename uncached conda packages
117
+ shell : bash
118
+ run : mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
119
+
125
120
build :
126
121
name : build
127
122
runs-on : ${{ matrix.os }}-latest
@@ -132,7 +127,7 @@ jobs:
132
127
lab : ['>=3.1.0,<4.0.0a0']
133
128
r : ['>=4']
134
129
steps :
135
- - uses : actions/checkout@v2
130
+ - uses : actions/checkout@v3
136
131
137
132
- uses : cschleiden/replace-tokens@v1
138
133
with :
@@ -143,27 +138,18 @@ jobs:
143
138
lab : ' ${{ matrix.lab }}'
144
139
nodejs : ' ${{ matrix.nodejs }}'
145
140
146
- - name : Cache conda
147
- uses : actions/cache@v2
148
- with :
149
- path : ~/conda_pkgs_dir
150
- key : |
151
- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-build-${{ hashFiles('requirements/github-actions.yml') }}
152
- restore-keys : |
153
- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-build-
154
-
155
141
- name : Set up Python and mamba
156
142
uses : conda-incubator/setup-miniconda@v2
157
143
with :
158
144
miniforge-variant : Mambaforge
145
+ use-mamba : true
159
146
160
147
- name : Install minimal build deps
161
- shell : bash -l {0}
162
148
run : mamba install -n test -c conda-forge setuptools wheel 'jupyterlab${{ matrix.lab }}' 'nodejs${{ matrix.nodejs }}'
163
149
164
150
- name : Cache node_modules
165
151
id : cache-node-modules
166
- uses : actions/cache@v2
152
+ uses : actions/cache@v3
167
153
with :
168
154
path : ' **/node_modules'
169
155
key : |
@@ -172,7 +158,7 @@ jobs:
172
158
- name : Cache yarn packages
173
159
id : cache-yarn-packages
174
160
if : steps.cache-node-modules.outputs.cache-hit != 'true'
175
- uses : actions/cache@v2
161
+ uses : actions/cache@v3
176
162
with :
177
163
path : .yarn-packages
178
164
key : |
@@ -210,11 +196,15 @@ jobs:
210
196
sha256sum * | tee SHA256SUMS
211
197
212
198
- name : Publish builds
213
- uses : actions/upload-artifact@v2
199
+ uses : actions/upload-artifact@v3
214
200
with :
215
201
name : jupyterlab-lsp dist ${{ github.run_number }}
216
202
path : ./dist
217
203
204
+ - name : Rename uncached conda packages
205
+ shell : bash
206
+ run : mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
207
+
218
208
acceptance :
219
209
runs-on : ${{ matrix.os }}-latest
220
210
name : atest ${{ matrix.os }} py${{ matrix.python }} r${{ matrix.r }}
@@ -231,15 +221,15 @@ jobs:
231
221
# Node 14 end-of-life: April 2023
232
222
nodejs : ' >=14,<15.0.0.a0'
233
223
r : ' <4'
234
- lab : ' >=3.1 .0,<3.2 '
224
+ lab : ' >=3.3 .0,<3.4 '
235
225
- python : ' 3.10'
236
226
# Node 16 end-of-life: April 2024
237
227
nodejs : ' >=16,<17.0.0.a0'
238
228
r : ' >=4'
239
- lab : ' >=3.2 .0,<4'
229
+ lab : ' >=3.4 .0,<4'
240
230
241
231
steps :
242
- - uses : actions/checkout@v2
232
+ - uses : actions/checkout@v3
243
233
244
234
- name : Set JupyterLab and Node versions
245
235
uses : cschleiden/replace-tokens@v1
@@ -251,15 +241,6 @@ jobs:
251
241
lab : ' ${{ matrix.lab }}'
252
242
nodejs : ' ${{ matrix.nodejs }}'
253
243
254
- - name : Cache conda
255
- uses : actions/cache@v2
256
- with :
257
- path : ~/conda_pkgs_dir
258
- key : |
259
- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-${{ matrix.python }}-atest-${{ hashFiles('requirements/github-actions.yml') }}
260
- restore-keys : |
261
- ${{ env.CACHE_EPOCH }}-${{ matrix.os }}-${{ matrix.python }}-atest-
262
-
263
244
- name : Set up Python and mamba
264
245
uses : conda-incubator/setup-miniconda@v2
265
246
with :
@@ -273,7 +254,7 @@ jobs:
273
254
274
255
- name : Cache node_modules
275
256
id : cache-node-modules
276
- uses : actions/cache@v2
257
+ uses : actions/cache@v3
277
258
with :
278
259
path : ' **/node_modules'
279
260
key : |
@@ -282,7 +263,7 @@ jobs:
282
263
- name : Cache yarn packages
283
264
id : cache-yarn-packages
284
265
if : steps.cache-node-modules.outputs.cache-hit != 'true'
285
- uses : actions/cache@v2
266
+ uses : actions/cache@v3
286
267
with :
287
268
path : .yarn-packages
288
269
key : |
@@ -291,13 +272,13 @@ jobs:
291
272
${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-
292
273
${{ env.CACHE_EPOCH }}-yarn-
293
274
294
- - uses : actions/cache@v2
275
+ - uses : actions/cache@v3
295
276
with :
296
277
path : ~/.julia/artifacts
297
278
key : |
298
279
${{ env.CACHE_EPOCH }}-julia-test-${{ runner.os }}-${{ env.JULIA_LANGSERVER }}
299
280
300
- - uses : actions/download-artifact@v2
281
+ - uses : actions/download-artifact@v3
301
282
with :
302
283
name : jupyterlab-lsp dist ${{ github.run_number }}
303
284
path : ./dist
@@ -352,12 +333,16 @@ jobs:
352
333
shell : bash
353
334
354
335
- name : Publish browser test output
355
- uses : actions/upload-artifact@v2
336
+ uses : actions/upload-artifact@v3
356
337
with :
357
338
name : ${{ job.status }} Robot ${{ matrix.os }} Python ${{ matrix.python }} ${{ github.run_number }}
358
339
path : ./atest/output
359
340
if : always()
360
341
342
+ - name : Rename uncached conda packages
343
+ shell : bash
344
+ run : mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"
345
+
361
346
smoke :
362
347
name : smoke ${{ matrix.os }} py${{ matrix.python }}
363
348
runs-on : ${{ matrix.os }}-latest
@@ -374,19 +359,19 @@ jobs:
374
359
include :
375
360
- python : ' 3.7'
376
361
dist : ' jupyter*lsp*.tar.gz'
377
- lab : ' >=3.1 ,<3.2 '
362
+ lab : ' >=3.3 ,<3.4 '
378
363
- python : ' 3.8'
379
364
dist : ' jupyter*lsp*.whl'
380
- lab : ' >=3.1 ,<3.2 '
365
+ lab : ' >=3.3 ,<3.4 '
381
366
- python : ' 3.9'
382
367
dist : ' jupyter*lsp*.tar.gz'
383
- lab : ' >=3.2,<3.3 '
368
+ lab : ' >=3.4,<4 '
384
369
- python : ' 3.10'
385
370
dist : ' jupyter*lsp*.whl'
386
- lab : ' >=3.2 ,<4'
371
+ lab : ' >=3.4 ,<4'
387
372
- python : ' pypy-3.7'
388
373
dist : ' jupyter*lsp*.tar.gz'
389
- lab : ' >=3.2,<3.3 '
374
+ lab : ' >=3.4,<4 '
390
375
- os : ' windows'
391
376
py_cmd : python
392
377
- os : ' macos'
@@ -395,11 +380,11 @@ jobs:
395
380
py_cmd : python
396
381
steps :
397
382
- name : Install Python
398
- uses : actions/setup-python@v2
383
+ uses : actions/setup-python@v4
399
384
with :
400
385
python-version : ${{ matrix.python }}
401
386
architecture : ' x64'
402
- - uses : actions/download-artifact@v2
387
+ - uses : actions/download-artifact@v3
403
388
with :
404
389
name : jupyterlab-lsp dist ${{ github.run_number }}
405
390
path : ./dist
@@ -415,10 +400,10 @@ jobs:
415
400
- name : Validate the install
416
401
run : |
417
402
set -eux
418
- jupyter labextension list
419
- jupyter server extension list
420
- jupyter labextension list 2>&1 | grep -ie "jupyterlab-lsp.*enabled.*ok" -
421
- jupyter server extension list 2>&1 | grep -ie "jupyter_lsp.*enabled" -
403
+ ${{ matrix.py_cmd }} -m jupyter labextension list
404
+ ${{ matrix.py_cmd }} -m jupyter server extension list
405
+ ${{ matrix.py_cmd }} -m jupyter labextension list 2>&1 | grep -ie "jupyterlab-lsp.*enabled.*ok" -
406
+ ${{ matrix.py_cmd }} -m jupyter server extension list 2>&1 | grep -ie "jupyter_lsp.*enabled" -
422
407
423
408
source :
424
409
name : smoke source install ${{ matrix.os }} py${{ matrix.python }} lab${{ matrix.lab }}
@@ -432,32 +417,33 @@ jobs:
432
417
nodejs : ['14']
433
418
include :
434
419
- python : ' 3.7'
435
- lab : ' >=3.1 ,<3.2 '
420
+ lab : ' >=3.3 ,<3.4 '
436
421
- python : ' 3.10'
437
- lab : ' >=3.2 ,<4'
422
+ lab : ' >=3.3 ,<4'
438
423
steps :
439
424
- name : Install Python
440
- uses : actions/setup-python@v2
425
+ uses : actions/setup-python@v4
441
426
with :
442
427
python-version : ${{ matrix.python }}
443
428
architecture : ' x64'
444
429
- name : Setup Node
445
- uses : actions/setup-node@v2
430
+ uses : actions/setup-node@v3
446
431
with :
447
432
node-version : ${{ matrix.nodejs }}
448
- - uses : actions/download-artifact@v2
433
+ - uses : actions/download-artifact@v3
449
434
with :
450
435
name : jupyterlab-lsp dist ${{ github.run_number }}
451
436
path : ./dist
452
437
- name : Install the prerequisites
453
438
run : python -m pip install --upgrade pip wheel setuptools
454
439
- name : Install JupyterLab
455
- shell : bash -l {0}
456
440
run : python -m pip install 'jupyterlab${{ matrix.lab }}'
441
+ - name : Install Notebook (to test serverextension)
442
+ run : python -m pip install 'notebook'
457
443
- name : Install the server package
458
444
run : cd dist && python -m pip install -vv jupyter_lsp*.whl
459
445
- name : install the source extension
460
- run : cd dist && jupyter labextension install krassowski -jupyterlab-lsp-*.tgz --log-level DEBUG
446
+ run : cd dist && jupyter labextension install jupyter-lsp -jupyterlab-lsp-*.tgz --log-level DEBUG
461
447
- name : Validate the install
462
448
run : |
463
449
set -eux
0 commit comments