Skip to content

Commit 515d362

Browse files
Update test workflow (#384)
* Update test workflow * Test more Python versions
1 parent 3dbefa0 commit 515d362

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

.github/workflows/test.yml

+22-16
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
timeout-minutes: 10
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Set up Python
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
2222
with:
23-
python-version: '3.11'
23+
python-version: '3.13'
2424

2525
- name: Base Setup
2626
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
@@ -29,6 +29,7 @@ jobs:
2929
run: |
3030
pip install "jupyterlab>=4.0.0,<5"
3131
pip install -e .
32+
pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc
3233
jlpm
3334
3435
- name: Run pre-commit
@@ -61,7 +62,7 @@ jobs:
6162
- name: Set up Python
6263
uses: actions/setup-python@v5
6364
with:
64-
python-version: '3.12'
65+
python-version: '3.13'
6566

6667
- name: Base Setup
6768
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
@@ -70,6 +71,9 @@ jobs:
7071
run: |
7172
pip install "jupyterlab>=4.0.0,<5"
7273
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
7377
jlpm
7478
jlpm build
7579
@@ -86,31 +90,31 @@ jobs:
8690
fail-fast: false
8791
matrix:
8892
os: [ubuntu-latest, windows-latest, macos-latest]
89-
python-version: ["3.8", "3.11", "3.12"]
93+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
9094
# PyPy is not supported because we use the file_id_manager. See:
9195
# https://github.com/jupyter-server/jupyter_server_fileid/issues/44
9296
#include:
9397
# - os: ubuntu-latest
9498
# python-version: "pypy-3.8"
95-
exclude:
96-
- os: windows-latest
97-
python-version: "3.12"
99+
98100
steps:
99101
- name: Checkout
100-
uses: actions/checkout@v3
102+
uses: actions/checkout@v4
101103

102104
- name: Base Setup
103105
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
104106

105107
- name: Install the Python dependencies
106108
run: |
107109
python -m pip install "jupyterlab>=4.0.0,<5"
108-
pip install -e ".[test]" codecov
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
109112
110113
- name: List installed packages
111114
run: |
112115
pip freeze
113116
pip check
117+
pip list
114118
115119
- name: Run the tests with Coverage
116120
if: ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(runner.os, 'Windows') }}
@@ -159,6 +163,7 @@ jobs:
159163
- name: Install the Python dependencies
160164
run: |
161165
pip install -e ".[test]"
166+
pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc
162167
163168
- name: Run the unit tests
164169
run: |
@@ -171,14 +176,15 @@ jobs:
171176
timeout-minutes: 20
172177
steps:
173178
- name: Checkout
174-
uses: actions/checkout@v3
179+
uses: actions/checkout@v4
175180

176181
- name: Base Setup
177182
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
178183

179184
- name: Install the Python dependencies
180185
run: |
181186
pip install -e ".[test]"
187+
pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc
182188
183189
- name: List installed packages
184190
run: |
@@ -195,14 +201,14 @@ jobs:
195201
runs-on: ubuntu-latest
196202
timeout-minutes: 10
197203
steps:
198-
- uses: actions/checkout@v3
204+
- uses: actions/checkout@v4
199205
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
200206
- name: Build SDist
201207
shell: bash
202208
run: |
203209
pip install build
204210
find projects/* -maxdepth 0 -type d | xargs -L 1 python -m build --sdist --outdir dist/
205-
- uses: actions/upload-artifact@v3
211+
- uses: actions/upload-artifact@v4
206212
with:
207213
name: "sdist"
208214
path: dist/*.tar.gz
@@ -216,7 +222,7 @@ jobs:
216222
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
217223

218224
- name: Download sdist
219-
uses: actions/download-artifact@v3
225+
uses: actions/download-artifact@v4
220226

221227
- name: Install From SDist
222228
shell: bash
@@ -255,7 +261,7 @@ jobs:
255261
runs-on: ubuntu-latest
256262
timeout-minutes: 15
257263
steps:
258-
- uses: actions/checkout@v3
264+
- uses: actions/checkout@v4
259265
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
260266
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
261267
with:
@@ -268,7 +274,7 @@ jobs:
268274
env:
269275
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/pw-browsers
270276
steps:
271-
- uses: actions/checkout@v3
277+
- uses: actions/checkout@v4
272278
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
273279
- name: Install dependencies
274280
run: |

0 commit comments

Comments
 (0)