@@ -3,14 +3,14 @@ name: CI
33on :
44 push :
55 branches :
6- - master
7- - 2.x
6+ - main
87 - 3.x
8+ - 4.x
99 pull_request :
1010 branches :
11- - master
12- - 2.x
11+ - main
1312 - 3.x
13+ - 4.x
1414 workflow_dispatch :
1515
1616# TODO: might need to tweak `group`
3030
3131 ATEST_PROCESSES : 2
3232 ATEST_RETRIES : 3
33- JLPM_CMD : jlpm --ignore-optional --prefer-offline --frozen-lockfile
33+ JLPM_CMD : jlpm install
3434
3535 # Increase this value to reset all caches
3636 CACHE_EPOCH : 4
4343 strategy :
4444 matrix :
4545 os : [ubuntu]
46- nodejs : ['>=14,<15 .0.0a0']
47- lab : ['>=3.6.0,<4 .0.0a0']
46+ nodejs : ['>=16,<17 .0.0a0']
47+ lab : ['>=4.0.5,<5 .0.0a0']
4848 r : ['>=4']
4949 steps :
5050 - uses : actions/checkout@v3
8484 if : steps.cache-node-modules.outputs.cache-hit != 'true'
8585 uses : actions/cache@v3
8686 with :
87- path : .yarn-packages
87+ path : ' .yarn/cache '
8888 key : |
8989 ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
9090 restore-keys : |
9999 run : jlpm build
100100
101101 - name : Run frontend unit tests
102- run : jlpm test
102+ run : jlpm test --no-bail
103103
104104 - name : Lint backend
105105 run : python scripts/lint.py
@@ -123,8 +123,8 @@ jobs:
123123 strategy :
124124 matrix :
125125 os : [ubuntu]
126- nodejs : ['>=14,<15 .0.0a0']
127- lab : ['>=3.6 .0,<4 .0.0a0']
126+ nodejs : ['>=16,<17 .0.0a0']
127+ lab : ['>=4.0 .0,<5 .0.0a0']
128128 r : ['>=4']
129129 steps :
130130 - uses : actions/checkout@v3
@@ -160,7 +160,7 @@ jobs:
160160 if : steps.cache-node-modules.outputs.cache-hit != 'true'
161161 uses : actions/cache@v3
162162 with :
163- path : .yarn-packages
163+ path : ' .yarn/cache '
164164 key : |
165165 ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
166166 restore-keys : |
@@ -214,18 +214,18 @@ jobs:
214214 fail-fast : false
215215 matrix :
216216 os : ['ubuntu', 'macos', 'windows']
217- python : ['3.8', '3.10 ']
217+ python : ['3.8', '3.11 ']
218218 include :
219219 - python : ' 3.8'
220- # Node 16 end-of-life: April 2024
220+ # Node 16 end-of-life: 2023-09-11
221221 nodejs : ' >=16,<17.0.0.a0'
222222 r : ' >=4'
223- lab : ' >=3.6.0,<4 '
224- - python : ' 3.10 '
225- # Node 16 end-of-life: April 2024
226- nodejs : ' >=16,<17 .0.0.a0'
223+ lab : ' >=4,<5 '
224+ - python : ' 3.11 '
225+ # Node 18 end-of-life: 2025-04-30
226+ nodejs : ' >=18,<19 .0.0.a0'
227227 r : ' >=4'
228- lab : ' >=3.6.0,<4 '
228+ lab : ' >=4,<5 '
229229
230230 steps :
231231 - uses : actions/checkout@v3
@@ -264,7 +264,7 @@ jobs:
264264 if : steps.cache-node-modules.outputs.cache-hit != 'true'
265265 uses : actions/cache@v3
266266 with :
267- path : .yarn-packages
267+ path : ' .yarn/cache '
268268 key : |
269269 ${{ env.CACHE_EPOCH }}-yarn-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
270270 restore-keys : |
@@ -298,11 +298,6 @@ jobs:
298298 jupyter server extension list
299299 jupyter server extension list 2>&1 | grep -ie "jupyter_lsp.*enabled" -
300300
301- - name : List notebook server extensions
302- run : |
303- jupyter serverextension list
304- jupyter serverextension list 2>&1 | grep -ie "jupyter_lsp.*enabled" -
305-
306301 - name : List frontend extensions
307302 run : |
308303 jupyter labextension list
@@ -351,23 +346,20 @@ jobs:
351346 max-parallel : 3
352347 matrix :
353348 os : ['ubuntu', 'macos', 'windows']
354- python : ['3.8', '3.9', '3.10', 'pypy-3.8']
355- exclude :
356- - os : windows
357- python : pypy-3.7
349+ python : ['3.8', '3.11', 'pypy-3.8']
358350 include :
359351 - python : ' 3.8'
360352 dist : ' jupyter*lsp*.whl'
361- lab : ' >=3.6,<3.7 '
362- - python : ' 3.9 '
353+ lab : ' >=4,<5 '
354+ - python : ' 3.8 '
363355 dist : ' jupyter*lsp*.tar.gz'
364- lab : ' >=3.6,<4 '
365- - python : ' 3.10 '
356+ lab : ' >=4,<5 '
357+ - python : ' 3.11 '
366358 dist : ' jupyter*lsp*.whl'
367- lab : ' >=3.6,<4 '
359+ lab : ' >=4,<5 '
368360 - python : ' pypy-3.8'
369361 dist : ' jupyter*lsp*.tar.gz'
370- lab : ' >=3.6,<4 '
362+ lab : ' >=4,<5 '
371363 - os : ' windows'
372364 py_cmd : python
373365 - os : ' macos'
@@ -409,13 +401,13 @@ jobs:
409401 fail-fast : false
410402 matrix :
411403 os : [ubuntu]
412- python : ['3.8', '3.10 ']
413- nodejs : ['14 ']
404+ python : ['3.8', '3.11 ']
405+ nodejs : ['18 ']
414406 include :
415407 - python : ' 3.8'
416- lab : ' >=3.6,<3.7 '
417- - python : ' 3.10 '
418- lab : ' >=3.6,<4 '
408+ lab : ' >=4,<5 '
409+ - python : ' 3.11 '
410+ lab : ' >=4,<5 '
419411 steps :
420412 - name : Install Python
421413 uses : actions/setup-python@v4
@@ -434,8 +426,6 @@ jobs:
434426 run : python -m pip install --upgrade pip wheel setuptools
435427 - name : Install JupyterLab
436428 run : python -m pip install 'jupyterlab${{ matrix.lab }}'
437- - name : Install Notebook (to test serverextension)
438- run : python -m pip install 'notebook'
439429 - name : Install the server package
440430 run : cd dist && python -m pip install -vv jupyter_lsp*.whl
441431 - name : install the source extension
@@ -445,7 +435,5 @@ jobs:
445435 set -eux
446436 jupyter labextension list
447437 jupyter server extension list
448- jupyter serverextension list
449438 jupyter labextension list 2>&1 | grep -ie "jupyterlab-lsp.*enabled.*ok" -
450439 jupyter server extension list 2>&1 | grep -ie "jupyter_lsp.*enabled" -
451- jupyter serverextension list 2>&1 | grep -ie "jupyter_lsp.*enabled" -
0 commit comments