@@ -11,58 +11,81 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v3
1515
1616 - name : Base Setup
1717 uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
1818
1919 - name : Install dependencies
20- run : python -m pip install -U jupyterlab~=3.4
20+ run : python -m pip install -U "jupyterlab>=4.0.0,<5"
21+
22+ - name : Lint the extension
23+ run : |
24+ set -eux
25+ jlpm
26+ jlpm run lint:check
27+
28+ - name : Test the extension
29+ run : |
30+ set -eux
31+ jlpm run test
2132
2233 - name : Build the extension
2334 run : |
2435 set -eux
25- jlpm
26- jlpm eslint:check
2736 python -m pip install .
2837
2938 jupyter labextension list
3039 jupyter labextension list 2>&1 | grep -ie "jupyterlab-blockly-extension.*OK"
3140 python -m jupyterlab.browser_check
41+
42+ - name : Package the extension
43+ run : |
44+ set -eux
3245
3346 pip install build
34- python -m build --sdist
35- cp dist/*.tar.gz myextension.tar.gz
47+ python -m build
3648 pip uninstall -y "jupyterlab_blockly" jupyterlab
37- rm -rf myextension
3849
39- - uses : actions/upload-artifact@v2
50+ - name : Upload extension packages
51+ uses : actions/upload-artifact@v3
4052 with :
41- name : myextension-sdist
42- path : myextension.tar.gz
53+ name : extension-artifacts
54+ path : dist/jupyterlab_blockly*
55+ if-no-files-found : error
4356
4457 test_isolated :
4558 needs : build
4659 runs-on : ubuntu-latest
4760
4861 steps :
49- - name : Checkout
50- uses : actions/checkout@v2
5162 - name : Install Python
52- uses : actions/setup-python@v2
63+ uses : actions/setup-python@v4
5364 with :
54- python-version : ' 3.8 '
65+ python-version : ' 3.9 '
5566 architecture : ' x64'
56- - uses : actions/download-artifact@v2
67+ - uses : actions/download-artifact@v3
5768 with :
58- name : myextension-sdist
69+ name : extension-artifacts
5970 - name : Install and Test
6071 run : |
6172 set -eux
6273 # Remove NodeJS, twice to take care of system and locally installed node versions.
6374 sudo rm -rf $(which node)
6475 sudo rm -rf $(which node)
65- pip install myextension.tar.gz
66- pip install jupyterlab
67- jupyter labextension list 2>&1 | grep -ie "jupyterlab-blockly-extension.*OK"
76+
77+ pip install "jupyterlab>=4.0.0,<5" jupyterlab_blockly*.whl
78+
79+
80+ jupyter labextension list
81+ jupyter labextension list 2>&1 | grep -ie "jupyterlab-blockly.*OK"
6882 python -m jupyterlab.browser_check --no-browser-test
83+
84+ check_links :
85+ name : Check Links
86+ runs-on : ubuntu-latest
87+ timeout-minutes : 15
88+ steps :
89+ - uses : actions/checkout@v3
90+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
91+ - uses : jupyterlab/maintainer-tools/.github/actions/check-links@v1
0 commit comments