@@ -45,42 +45,44 @@ jobs:
45
45
cache-environment : true
46
46
47
47
- name : Build the extension
48
- run : python -m build
48
+ run : |
49
+ set -eux
50
+ python -m build
49
51
50
- - uses : actions/upload-artifact@v2
52
+ - name : Upload extension packages
53
+ uses : actions/upload-artifact@v3
51
54
with :
52
55
name : jupyterlite-xeus-python-dist-${{ github.run_number }}
53
- path : ./dist
56
+ path : dist
57
+ if-no-files-found : error
54
58
55
59
test_isolated :
56
60
needs : build
57
61
runs-on : ubuntu-latest
58
62
59
63
steps :
60
- - name : Checkout
61
- uses : actions/checkout@v4
62
- - name : Install Python
63
- uses : actions/setup-python@v2
64
- with :
65
- python-version : ' 3.10'
66
- architecture : ' x64'
67
- - uses : actions/download-artifact@v2
68
- with :
69
- name : jupyterlite-xeus-python-dist-${{ github.run_number }}
70
- path : ./dist
71
- - name : Install and Test
72
- run : |
73
- set -eux
74
- # Remove NodeJS, twice to take care of system and locally installed node versions.
75
- sudo rm -rf $(which node)
76
- sudo rm -rf $(which node)
77
- pip install jupyterlite_xeus_python*.tar.gz
78
- pip install "jupyterlab==4"
79
- jupyter labextension list 2>&1 | grep -ie "@jupyterlite/xeus-python-kernel.*OK"
80
-
81
- # TODO: add JupyterLite browser check
82
- # python -m jupyterlab.browser_check --no-chrome-test
83
- working-directory : dist
64
+ - name : Install Python
65
+ uses : actions/setup-python@v4
66
+ with :
67
+ python-version : ' 3.10'
68
+ architecture : ' x64'
69
+ - uses : actions/download-artifact@v3
70
+ with :
71
+ name : jupyterlite-xeus-python-dist-${{ github.run_number }}
72
+ - name : Install and Test
73
+ run : |
74
+ set -eux
75
+ # Remove NodeJS, twice to take care of system and locally installed node versions.
76
+ sudo rm -rf $(which node)
77
+ sudo rm -rf $(which node)
78
+
79
+ pip install "jupyterlab>=4.0.0,<5" jupyterlite_xeus_python*.whl
80
+
81
+ jupyter labextension list
82
+ jupyter labextension list 2>&1 | grep -ie "@jupyterlite/xeus-python-kernel.*OK"
83
+
84
+ python -m jupyterlab.browser_check --no-browser-test
85
+
84
86
85
87
python-tests-mamba-python :
86
88
needs : build
@@ -198,3 +200,13 @@ jobs:
198
200
- name : Run tests
199
201
run : pytest -rP test_xeus_python_env.py
200
202
working-directory : tests
203
+
204
+
205
+ check_links :
206
+ name : Check Links
207
+ runs-on : ubuntu-latest
208
+ timeout-minutes : 15
209
+ steps :
210
+ - uses : actions/checkout@v3
211
+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
212
+ - uses : jupyterlab/maintainer-tools/.github/actions/check-links@v1
0 commit comments