Skip to content

Commit 37ab923

Browse files
authored
Merge pull request #869 from krassowski/add-notebook-on-ci
Add notebook dependency to CI to test `serverextension`, fix CI
2 parents d2a7a7d + 0f9be07 commit 37ab923

18 files changed

+80
-63
lines changed

.github/workflows/job.test.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
lab: ['>=3.3.0,<4.0.0a0']
4848
r: ['>=4']
4949
steps:
50-
- uses: actions/checkout@v2
50+
- uses: actions/checkout@v3
5151

5252
- uses: cschleiden/replace-tokens@v1
5353
with:
@@ -158,7 +158,6 @@ jobs:
158158
miniforge-variant: Mambaforge
159159

160160
- name: Install minimal build deps
161-
shell: bash -l {0}
162161
run: mamba install -n test -c conda-forge setuptools wheel 'jupyterlab${{ matrix.lab }}' 'nodejs${{ matrix.nodejs }}'
163162

164163
- name: Cache node_modules
@@ -210,7 +209,7 @@ jobs:
210209
sha256sum * | tee SHA256SUMS
211210
212211
- name: Publish builds
213-
uses: actions/upload-artifact@v2
212+
uses: actions/upload-artifact@v3
214213
with:
215214
name: jupyterlab-lsp dist ${{ github.run_number }}
216215
path: ./dist
@@ -239,7 +238,7 @@ jobs:
239238
lab: '>=3.4.0,<4'
240239

241240
steps:
242-
- uses: actions/checkout@v2
241+
- uses: actions/checkout@v3
243242

244243
- name: Set JupyterLab and Node versions
245244
uses: cschleiden/replace-tokens@v1
@@ -297,7 +296,7 @@ jobs:
297296
key: |
298297
${{ env.CACHE_EPOCH }}-julia-test-${{ runner.os }}-${{ env.JULIA_LANGSERVER }}
299298
300-
- uses: actions/download-artifact@v2
299+
- uses: actions/download-artifact@v3
301300
with:
302301
name: jupyterlab-lsp dist ${{ github.run_number }}
303302
path: ./dist
@@ -395,11 +394,11 @@ jobs:
395394
py_cmd: python
396395
steps:
397396
- name: Install Python
398-
uses: actions/setup-python@v2
397+
uses: actions/setup-python@v4
399398
with:
400399
python-version: ${{ matrix.python }}
401400
architecture: 'x64'
402-
- uses: actions/download-artifact@v2
401+
- uses: actions/download-artifact@v3
403402
with:
404403
name: jupyterlab-lsp dist ${{ github.run_number }}
405404
path: ./dist
@@ -415,10 +414,10 @@ jobs:
415414
- name: Validate the install
416415
run: |
417416
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" -
417+
${{ matrix.py_cmd }} -m jupyter labextension list
418+
${{ matrix.py_cmd }} -m jupyter server extension list
419+
${{ matrix.py_cmd }} -m jupyter labextension list 2>&1 | grep -ie "jupyterlab-lsp.*enabled.*ok" -
420+
${{ matrix.py_cmd }} -m jupyter server extension list 2>&1 | grep -ie "jupyter_lsp.*enabled" -
422421
423422
source:
424423
name: smoke source install ${{ matrix.os }} py${{ matrix.python }} lab${{ matrix.lab }}
@@ -437,23 +436,24 @@ jobs:
437436
lab: '>=3.3,<4'
438437
steps:
439438
- name: Install Python
440-
uses: actions/setup-python@v2
439+
uses: actions/setup-python@v4
441440
with:
442441
python-version: ${{ matrix.python }}
443442
architecture: 'x64'
444443
- name: Setup Node
445-
uses: actions/setup-node@v2
444+
uses: actions/setup-node@v3
446445
with:
447446
node-version: ${{ matrix.nodejs }}
448-
- uses: actions/download-artifact@v2
447+
- uses: actions/download-artifact@v3
449448
with:
450449
name: jupyterlab-lsp dist ${{ github.run_number }}
451450
path: ./dist
452451
- name: Install the prerequisites
453452
run: python -m pip install --upgrade pip wheel setuptools
454453
- name: Install JupyterLab
455-
shell: bash -l {0}
456454
run: python -m pip install 'jupyterlab${{ matrix.lab }}'
455+
- name: Install Notebook (to test serverextension)
456+
run: python -m pip install 'notebook'
457457
- name: Install the server package
458458
run: cd dist && python -m pip install -vv jupyter_lsp*.whl
459459
- name: install the source extension

atest/01_Editor.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Resource Variables.resource
44

55
Suite Setup Setup Suite For Screenshots editor
66

7-
Force Tags ui:editor aspect:ls:features
7+
Test Tags ui:editor aspect:ls:features
88

99

1010
*** Test Cases ***

atest/04_Interface/BackendFailure.robot

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
*** Settings ***
22
Resource ../Keywords.resource
33

4-
Suite Setup Setup Server and Browser server_extension_enabled=${False}
5-
Suite Teardown Setup Server and Browser server_extension_enabled=${True}
4+
Suite Setup Setup Missing Extension Test
5+
Suite Teardown Teardown Missing Extension Test
66

77

88
*** Variables ***
@@ -19,3 +19,12 @@ Handles Server Extension Failure
1919
Accept Default Dialog Option
2020
Page Should Not Contain Element ${POPOVER}
2121
[Teardown] Clean Up After Working With File Python.ipynb
22+
23+
24+
*** Keywords ***
25+
Setup Missing Extension Test
26+
Set Server Extension State enabled=${False}
27+
Setup Server and Browser
28+
29+
Teardown Missing Extension Test
30+
Set Server Extension State enabled=${True}

atest/04_Interface/DiagnosticsPanel.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Suite Setup Setup Suite For Screenshots diagnostics_panel
55
Test Setup Set Up
66
Test Teardown Clean Up
77

8-
Force Tags ui:notebook aspect:ls:features
8+
Test Tags ui:notebook aspect:ls:features
99

1010

1111
*** Variables ***

atest/05_Features/Completion.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Suite Setup Setup Suite For Screenshots completion
55
Test Setup Setup Completion Test
66
Test Teardown Clean Up After Working With File Completion.ipynb
77

8-
Force Tags feature:completion
8+
Test Tags feature:completion
99

1010

1111
*** Variables ***

atest/05_Features/Diagnostics.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Suite Setup Setup Suite For Screenshots diagnostics
55
Test Setup Setup Notebook Python Diagnostic.ipynb
66
Test Teardown Clean Up After Working With File Diagnostic.ipynb
77

8-
Force Tags feature:diagnostics
8+
Test Tags feature:diagnostics
99
# note: diagnostics are also tested in 01_Editor and 04_Interface/DiagnosticsPanel.robot
1010

1111

atest/05_Features/Highlights.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Suite Setup Setup Suite For Screenshots highlights
55
Test Setup Setup Highlights Test
66
Test Teardown Clean Up After Working With File Highlights.ipynb
77

8-
Force Tags feature:highlights
8+
Test Tags feature:highlights
99

1010

1111
*** Test Cases ***

atest/05_Features/Hover.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Suite Setup Setup Suite For Screenshots hover
66
Test Setup Setup Hover Test
77
Test Teardown Clean Up After Working With File Hover.ipynb
88

9-
Force Tags feature:hover
9+
Test Tags feature:hover
1010

1111

1212
*** Variables ***

atest/05_Features/Jump.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Resource ../Keywords.resource
33

44
Suite Setup Setup Suite For Screenshots gh-403
55

6-
Force Tags feature:jump-to-definition gh:403
6+
Test Tags feature:jump-to-definition gh:403
77

88

99
*** Variables ***

atest/05_Features/Signature.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Suite Setup Setup Suite For Screenshots signature
55
Test Setup Setup Notebook Python Signature.ipynb
66
Test Teardown Clean Up After Working With File Signature.ipynb
77

8-
Force Tags feature:signature
8+
Test Tags feature:signature
99

1010

1111
*** Variables ***

0 commit comments

Comments
 (0)