@@ -11,16 +11,11 @@ jobs:
1111 - name : Set up Python
1212 uses : actions/setup-python@v4
1313 with :
14- python-version : 3.7
14+ python-version : 3.8
1515 cache : ' pip'
1616 cache-dependency-path : |
1717 **/setup.cfg
1818 **/requirements*.txt
19- - name : Install node
20- uses : actions/setup-node@v3
21- with :
22- node-version : ' 18'
23- cache : yarn
2419 - name : Install dependencies
2520 run : |
2621 sudo apt-get install -y pandoc
@@ -39,44 +34,39 @@ jobs:
3934 - name : Set up Python
4035 uses : actions/setup-python@v4
4136 with :
42- python-version : 3.7
37+ python-version : 3.8
4338 cache : ' pip'
4439 cache-dependency-path : |
4540 **/setup.cfg
4641 **/requirements*.txt
4742 - name : Install dependencies
4843 run : |
4944 python -m pip install --upgrade pip
50- python -m pip install jupyterlab~=3.0
51- - name : Install node
52- uses : actions/setup-node@v3
53- with :
54- node-version : ' 18'
55- cache : yarn
45+ python -m pip install jupyterlab==4.0.0
5646 - name : yarn install, build, test
5747 run : |
58- yarn --frozen-lockfile
59- yarn build
60- yarn build:examples
48+ jlpm --immutable
49+ jlpm build
50+ jlpm build:examples
6151
6252 pushd packages/base
63- yarn test:unit:firefox:headless
53+ jlpm test:unit:firefox:headless
6454 popd
6555
6656 pushd packages/base-manager
67- yarn test:unit:firefox:headless
57+ jlpm test:unit:firefox:headless
6858 popd
6959
7060 pushd packages/controls
71- yarn test:unit:firefox:headless
61+ jlpm test:unit:firefox:headless
7262 popd
7363
7464 pushd packages/html-manager
75- yarn test:unit:firefox:headless
65+ jlpm test:unit:firefox:headless
7666 popd
7767
7868 pushd examples/web1
79- yarn test:firefox:headless
69+ jlpm test:firefox:headless
8070 popd
8171
8272 env :
8777 strategy :
8878 max-parallel : 4
8979 matrix :
90- python-version : ['3.7', '3. 8', '3.9', '3.10', '3.11']
80+ python-version : ['3.8', '3.9', '3.10', '3.11']
9181
9282 steps :
9383 - uses : actions/checkout@v3
@@ -118,27 +108,22 @@ jobs:
118108 - name : Set up Python
119109 uses : actions/setup-python@v4
120110 with :
121- python-version : 3.7
111+ python-version : 3.8
122112 cache : ' pip'
123113 cache-dependency-path : |
124114 **/setup.cfg
125115 **/requirements*.txt
126- - name : Install node
127- uses : actions/setup-node@v3
128- with :
129- node-version : ' 18'
130- cache : yarn
131116 - name : Install Python dependencies
132117 run : |
133118 python -m pip install --upgrade pip
134- pip install file://$PWD/python/ipywidgets#egg=ipywidgets[test]
119+ pip install jupyterlab file://$PWD/python/ipywidgets#egg=ipywidgets[test]
135120 - name : Install JS dependencies
136121 run : |
137- yarn
122+ jlpm
138123 - name : Compare spec with latest version
139124 run : |
140125 python ./packages/schema/generate-spec.py -f markdown spec.md
141- yarn prettier
126+ jlpm prettier
142127 diff -u ./packages/schema/jupyterwidgetmodels.latest.md ./spec.md
143128
144129 ui-test :
@@ -159,18 +144,12 @@ jobs:
159144 - name : Install dependencies
160145 run : |
161146 python -m pip install --upgrade pip
162- python -m pip install -U jupyterlab~=3.2 jupyter-packaging~=0.10
163-
164- - name : Install node
165- uses : actions/setup-node@v3
166- with :
167- node-version : ' 18'
168- cache : yarn
147+ python -m pip install -U jupyterlab==4.0.0 jupyter-packaging~=0.10
169148
170149 - name : Build and Install ipywidgets
171150 run : |
172- yarn --frozen-lockfile
173- yarn build
151+ jlpm --immutable
152+ jlpm build
174153
175154 - name : Build the extension
176155 run : |
@@ -187,25 +166,15 @@ jobs:
187166
188167 - name : Install Test Dependencies
189168 run : |
190- cd ui-tests
191- yarn --frozen-lockfile
192- yarn playwright install chromium
193-
194- - name : Launch JupyterLab
195- run : |
196- cd ui-tests
197- yarn start:detached
198-
199- - name : Wait for JupyterLab
200- uses : ifaxity/wait-on-action@v1
201- with :
202- resource : http-get://localhost:8888/api
203- timeout : 20000
169+ jlpm --immutable
170+ npx playwright install chromium
171+ working-directory : ui-tests
204172
205- - name : Run UI Tests
173+ - name : Execute integration tests
174+ shell : bash -l {0}
175+ working-directory : ui-tests
206176 run : |
207- cd ui-tests
208- yarn test
177+ npx playwright test
209178
210179 - name : Upload Playwright Test assets
211180 if : always()
@@ -225,9 +194,9 @@ jobs:
225194
226195 - name : Update snapshots
227196 if : failure()
197+ working-directory : ui-tests
228198 run : |
229- cd ui-tests
230- yarn test:update
199+ jlpm test:update
231200
232201 - name : Upload updated snapshots
233202 if : failure()
0 commit comments