|
9 | 9 | jobs: |
10 | 10 | build: |
11 | 11 | runs-on: ubuntu-latest |
| 12 | + |
12 | 13 | steps: |
13 | 14 | - name: Checkout |
14 | | - uses: actions/checkout@v2 |
| 15 | + uses: actions/checkout@v3 |
15 | 16 |
|
16 | 17 | - name: Base Setup |
17 | 18 | uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 |
18 | 19 |
|
19 | 20 | - name: Install dependencies |
20 | | - run: python -m pip install -U jupyterlab~=3.4 |
21 | | - |
22 | | - - name: Build the extension |
| 21 | + run: python -m pip install -U "jupyterlab>=4.0.0,<5" |
| 22 | + |
| 23 | + - name: Lint the extension |
23 | 24 | run: | |
24 | 25 | set -eux |
25 | 26 | jlpm |
26 | 27 | jlpm eslint:check |
| 28 | +
|
| 29 | + - name: Build the extension |
| 30 | + run: | |
| 31 | + set -eux |
27 | 32 | python -m pip install . |
28 | 33 |
|
29 | 34 | jupyter labextension list |
30 | 35 | jupyter labextension list 2>&1 | grep -ie "jupyterlab-blockly-extension.*OK" |
31 | 36 | python -m jupyterlab.browser_check |
| 37 | + |
| 38 | + - name: Package the extension |
| 39 | + run: | |
| 40 | + set -eux |
32 | 41 |
|
33 | 42 | pip install build |
34 | | - python -m build --sdist |
35 | | - cp dist/*.tar.gz myextension.tar.gz |
| 43 | + python -m build |
36 | 44 | pip uninstall -y "jupyterlab_blockly" jupyterlab |
37 | | - rm -rf myextension |
38 | 45 |
|
39 | | - - uses: actions/upload-artifact@v2 |
| 46 | + - name: Upload extension packages |
| 47 | + uses: actions/upload-artifact@v3 |
40 | 48 | with: |
41 | | - name: myextension-sdist |
42 | | - path: myextension.tar.gz |
| 49 | + name: extension-artifacts |
| 50 | + path: dist/jupyterlab_blockly* |
| 51 | + if-no-files-found: error |
43 | 52 |
|
44 | 53 | test_isolated: |
45 | 54 | needs: build |
46 | 55 | runs-on: ubuntu-latest |
47 | 56 |
|
48 | 57 | steps: |
49 | | - - name: Checkout |
50 | | - uses: actions/checkout@v2 |
51 | 58 | - name: Install Python |
52 | | - uses: actions/setup-python@v2 |
| 59 | + uses: actions/setup-python@v4 |
53 | 60 | with: |
54 | | - python-version: '3.8' |
| 61 | + python-version: '3.9' |
55 | 62 | architecture: 'x64' |
56 | | - - uses: actions/download-artifact@v2 |
| 63 | + - uses: actions/download-artifact@v3 |
57 | 64 | with: |
58 | | - name: myextension-sdist |
| 65 | + name: extension-artifacts |
59 | 66 | - name: Install and Test |
60 | 67 | run: | |
61 | 68 | set -eux |
62 | 69 | # Remove NodeJS, twice to take care of system and locally installed node versions. |
63 | 70 | sudo rm -rf $(which node) |
64 | 71 | 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" |
| 72 | +
|
| 73 | + pip install "jupyterlab>=4.0.0,<5" jupyterlab_blockly*.whl |
| 74 | +
|
| 75 | +
|
| 76 | + jupyter labextension list |
| 77 | + jupyter labextension list 2>&1 | grep -ie "jupyterlab-blockly.*OK" |
68 | 78 | python -m jupyterlab.browser_check --no-browser-test |
| 79 | +
|
| 80 | + check_links: |
| 81 | + name: Check Links |
| 82 | + runs-on: ubuntu-latest |
| 83 | + timeout-minutes: 15 |
| 84 | + steps: |
| 85 | + - uses: actions/checkout@v3 |
| 86 | + - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 |
| 87 | + - uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1 |
0 commit comments