File tree Expand file tree Collapse file tree 4 files changed +46
-72
lines changed
Expand file tree Collapse file tree 4 files changed +46
-72
lines changed Original file line number Diff line number Diff line change @@ -17,29 +17,59 @@ jobs:
1717 uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
1818
1919 - name : Install dependencies
20- run : python -m pip install -U 'jupyterlab>=4.0.0,<5'
20+ run : python -m pip install -U 'jupyterlab>=4.0.0,<5' && python -m pip install -U 'notebook>=7,<8'
2121
2222 - name : Build the extension
2323 run : |
2424 set -eux
2525 jlpm
26- jlpm lint:check
26+ jlpm run eslint:check
27+ cd ./components
28+ npm install
29+ npm run build
30+ cd ..
31+ cd ./nbextension
32+ npm install
33+ npm run build
34+ cd ..
2735 python -m pip install .
2836
2937 jupyter labextension list 2>&1 | grep -ie "lc_notebook_diff.*OK"
3038 python -m jupyterlab.browser_check
3139
40+ jlpm install
41+ cd ./ui-tests
42+ jlpm install
43+ jlpm playwright install
44+ jlpm playwright test
45+ cd ..
46+
3247 pip install build
3348 python -m build --sdist
3449 cp dist/*.tar.gz myextension.tar.gz
3550 pip uninstall -y "lc_notebook_diff" jupyterlab
3651 rm -rf myextension
3752
38- - uses : actions/upload-artifact@v2
53+ npm pack
54+ mv lc_notebook_diff-*.tgz myextension-nodejs.tgz
55+
56+ - uses : actions/upload-artifact@v4
57+ if : ${{ !cancelled() }}
58+ with :
59+ name : playwright-report
60+ path : ui-tests/playwright-report/
61+ retention-days : 30
62+
63+ - uses : actions/upload-artifact@v4
3964 with :
4065 name : myextension-sdist
4166 path : myextension.tar.gz
4267
68+ - uses : actions/upload-artifact@v4
69+ with :
70+ name : myextension-nodejs
71+ path : myextension-nodejs.tgz
72+
4373 test_isolated :
4474 needs : build
4575 runs-on : ubuntu-latest
5282 with :
5383 python-version : ' 3.9'
5484 architecture : ' x64'
55- - uses : actions/download-artifact@v2
85+ - uses : actions/download-artifact@v4
5686 with :
5787 name : myextension-sdist
5888 - name : Install and Test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -79,12 +79,19 @@ jobs:
7979 npm pack
8080 mv lc_notebook_diff-*.tgz myextension-nodejs.tgz
8181
82- - uses : actions/upload-artifact@v2
82+ - uses : actions/upload-artifact@v4
83+ if : ${{ !cancelled() }}
84+ with :
85+ name : playwright-report
86+ path : ui-tests/playwright-report/
87+ retention-days : 30
88+
89+ - uses : actions/upload-artifact@v4
8390 with :
8491 name : myextension-sdist
8592 path : myextension.tar.gz
8693
87- - uses : actions/upload-artifact@v2
94+ - uses : actions/upload-artifact@v4
8895 with :
8996 name : myextension-nodejs
9097 path : myextension-nodejs.tgz
@@ -96,10 +103,10 @@ jobs:
96103 steps :
97104 - name : Checkout
98105 uses : actions/checkout@v2
99- - uses : actions/download-artifact@v2
106+ - uses : actions/download-artifact@v4
100107 with :
101108 name : myextension-sdist
102- - uses : actions/download-artifact@v2
109+ - uses : actions/download-artifact@v4
103110 with :
104111 name : myextension-nodejs
105112 - name : release
Original file line number Diff line number Diff line change @@ -22,6 +22,6 @@ class CustomHook(BuildHookInterface):
2222
2323 def initialize (self , version , build_data ):
2424 """Initialize the hook."""
25- if self .target_name not in ["wheel" , " sdist" ]:
25+ if self .target_name not in ["sdist" ]:
2626 return
2727 build_nbextension ()
You can’t perform that action at this time.
0 commit comments