28
28
- name : Install dependencies
29
29
run : |
30
30
pip install "jupyterlab>=4.0.0,<5"
31
- pip install -e .
32
- pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc
33
- jlpm
31
+ jlpm install
34
32
35
33
- name : Run pre-commit
36
34
uses :
pre-commit/[email protected]
55
53
test-js :
56
54
name : Test JavaScript
57
55
runs-on : ubuntu-latest
56
+ needs : [pre-commit]
58
57
steps :
59
58
- name : Checkout
60
59
uses : actions/checkout@v4
69
68
70
69
- name : Install dependencies
71
70
run : |
72
- pip install "jupyterlab>=4.0.0,<5"
73
- pip install -e .
74
- pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc
75
- jupyter labextension develop --overwrite projects/jupyter-collaboration-ui
76
- jupyter labextension develop --overwrite projects/jupyter-docprovider
77
- jlpm
78
- jlpm build
71
+ yarn dev
79
72
80
73
- name : Run Tests
81
74
run : |
@@ -84,13 +77,14 @@ jobs:
84
77
85
78
test-py :
86
79
name : Test Python
80
+ needs : [pre-commit]
87
81
runs-on : ${{ matrix.os }}
88
82
timeout-minutes : 20
89
83
strategy :
90
84
fail-fast : false
91
85
matrix :
92
86
os : [ubuntu-latest, windows-latest, macos-latest]
93
- python-version : ["3.8", "3. 9", "3.10", "3.11", "3.12", "3.13"]
87
+ python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
94
88
# PyPy is not supported because we use the file_id_manager. See:
95
89
# https://github.com/jupyter-server/jupyter_server_fileid/issues/44
96
90
# include:
@@ -106,9 +100,8 @@ jobs:
106
100
107
101
- name : Install the Python dependencies
108
102
run : |
109
- python -m pip install "jupyterlab>=4.0.0,<5"
110
- python -m pip install -e ".[test]" codecov
111
- python -m pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc
103
+ python -m pip install codecov
104
+ yarn dev
112
105
113
106
- name : List installed packages
114
107
run : |
@@ -148,7 +141,7 @@ jobs:
148
141
149
142
test_minimum_versions :
150
143
name : Test Minimum Versions
151
- needs : [pre-commit, test-js, test-py]
144
+ needs : [test-js, test-py]
152
145
timeout-minutes : 20
153
146
runs-on : ubuntu-latest
154
147
steps :
@@ -157,21 +150,20 @@ jobs:
157
150
- name : Base Setup
158
151
uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
159
152
with :
160
- python_version : " 3.8 "
153
+ python_version : " 3.9 "
161
154
dependency_type : minimum
162
155
163
156
- name : Install the Python dependencies
164
157
run : |
165
- pip install -e ".[test]"
166
- pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc
158
+ yarn dev
167
159
168
160
- name : Run the unit tests
169
161
run : |
170
162
pytest -vv -W default || pytest -vv -W default --lf
171
163
172
164
test_prereleases :
173
165
name : Test Prereleases
174
- needs : [pre-commit, test-js, test-py]
166
+ needs : [test-js, test-py]
175
167
runs-on : ubuntu-latest
176
168
timeout-minutes : 20
177
169
steps :
@@ -183,8 +175,7 @@ jobs:
183
175
184
176
- name : Install the Python dependencies
185
177
run : |
186
- pip install -e ".[test]"
187
- pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc
178
+ yarn dev
188
179
189
180
- name : List installed packages
190
181
run : |
@@ -197,7 +188,7 @@ jobs:
197
188
198
189
make_sdist :
199
190
name : Make SDist
200
- needs : [pre-commit, test-js, test-py ]
191
+ needs : [pre-commit]
201
192
runs-on : ubuntu-latest
202
193
timeout-minutes : 10
203
194
steps :
@@ -269,16 +260,21 @@ jobs:
269
260
270
261
ui_tests :
271
262
runs-on : ubuntu-latest
272
- needs : [pre-commit, test-js ]
263
+ needs : [make_sdist ]
273
264
timeout-minutes : 30
274
265
env :
275
266
PLAYWRIGHT_BROWSERS_PATH : ${{ github.workspace }}/pw-browsers
276
267
steps :
277
268
- uses : actions/checkout@v4
278
269
- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
270
+ - name : Download sdist
271
+ uses : actions/download-artifact@v4
272
+ with :
273
+ name : " sdist"
279
274
- name : Install dependencies
280
275
run : |
281
- pip install jupyterlab .
276
+ pip install jupyterlab jupyter_collaboration_ui*.tar.gz jupyter_docprovider*.tar.gz jupyter_server_ydoc*.tar.gz
277
+
282
278
- name : Install playwright
283
279
env :
284
280
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
0 commit comments