@@ -16,19 +16,26 @@ jobs:
16
16
steps :
17
17
- name : Checkout
18
18
uses : actions/checkout@v3
19
+
19
20
- name : Set up Python
20
21
uses : actions/setup-python@v4
21
22
with :
22
23
python-version : ' 3.11'
24
+
25
+ - name : Base Setup
26
+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
27
+
23
28
- name : Install dependencies
24
29
run : |
25
- pip install jupyterlab
30
+ pip install " jupyterlab>=4.0.0,<5"
26
31
pip install -e .
27
32
jlpm
33
+
28
34
- name : Run pre-commit
29
35
uses :
pre-commit/[email protected]
30
36
with :
31
37
extra_args : --all-files --hook-stage=manual
38
+
32
39
- name : Help message if pre-commit fail
33
40
if : ${{ failure() }}
34
41
run : |
39
46
echo " pre-commit run"
40
47
echo "or after-the-fact on already committed files with"
41
48
echo " pre-commit run --all-files --hook-stage=manual"
49
+
42
50
- name : Lint frontend
43
51
run : |
44
52
jlpm run lint:check
@@ -49,15 +57,21 @@ jobs:
49
57
steps :
50
58
- name : Checkout
51
59
uses : actions/checkout@v3
60
+
52
61
- name : Set up Python
53
62
uses : actions/setup-python@v4
54
63
with :
55
64
python-version : ' 3.11'
65
+
66
+ - name : Base Setup
67
+ uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
68
+
56
69
- name : Install dependencies
57
70
run : |
58
- pip install jupyterlab
71
+ pip install " jupyterlab>=4.0.0,<5"
59
72
pip install -e .
60
73
jlpm
74
+
61
75
- name : Run Tests
62
76
run : |
63
77
set -eux
@@ -72,34 +86,47 @@ jobs:
72
86
matrix :
73
87
os : [ubuntu-latest, windows-latest, macos-latest]
74
88
python-version : ["3.8", "3.11"]
75
- include :
76
- - os : ubuntu-latest
77
- python-version : " pypy-3.8"
89
+ # PyPy is not supported because we use the file_id_manager. See:
90
+ # https://github.com/jupyter-server/jupyter_server_fileid/issues/44
91
+ # include:
92
+ # - os: ubuntu-latest
93
+ # python-version: "pypy-3.8"
78
94
steps :
79
95
- name : Checkout
80
96
uses : actions/checkout@v3
97
+
81
98
- name : Base Setup
82
99
uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
100
+
83
101
- name : Install the Python dependencies
84
102
run : |
103
+ python -m pip install "jupyterlab>=4.0.0,<5"
85
104
pip install -e ".[test]" codecov
86
- python -m pip install jupyterlab
105
+
87
106
- name : List installed packages
88
107
run : |
89
108
pip freeze
90
109
pip check
110
+
91
111
- name : Run the tests with Coverage
92
112
if : ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(runner.os, 'Windows') }}
93
113
run : |
94
114
python -m pytest -vv --cov jupyter_collaboration --cov-branch --cov-report term-missing:skip-covered
95
- - name : Run the tests on pypy and Windows
96
- if : ${{ startsWith(matrix.python-version, 'pypy') || startsWith(runner.os, 'Windows') }}
97
- run : |
98
- python -W ignore::ImportWarning -m pytest -vv
99
- - name : Coverage
100
- if : ${{ !startsWith(matrix.python-version, 'pypy') && !startsWith(runner.os, 'Windows') }}
115
+
116
+ # - name: Run the tests on pypy
117
+ # if: ${{ startsWith(matrix.python-version, 'pypy') }}
118
+ # run: |
119
+ # PyPy is not supported because we use the file_id_manager. See:
120
+ # https://github.com/jupyter-server/jupyter_server_fileid/issues/44
121
+ # python -W ignore::ImportWarning -m pytest -vv
122
+
123
+ - name : Run the tests on Windows
124
+ if : ${{ startsWith(runner.os, 'Windows') }}
101
125
run : |
102
- codecov
126
+ python -W ignore::ImportWarning -m pytest -vv --cov jupyter_collaboration --cov-branch --cov-report term-missing:skip-covered
127
+
128
+ - uses : jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1
129
+
103
130
- name : Build the extension
104
131
if : ${{ !startsWith(matrix.python-version, 'pypy') }}
105
132
shell : bash
@@ -118,12 +145,15 @@ jobs:
118
145
runs-on : ubuntu-latest
119
146
steps :
120
147
- uses : actions/checkout@v3
148
+
121
149
- name : Base Setup
122
150
uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
123
151
with :
124
152
python_version : " 3.11"
153
+
125
154
- name : Install minimum versions
126
155
uses : jupyterlab/maintainer-tools/.github/actions/install-minimums@v1
156
+
127
157
- name : Run the unit tests
128
158
run : |
129
159
pytest -vv -W default || pytest -vv -W default --lf
@@ -136,15 +166,19 @@ jobs:
136
166
steps :
137
167
- name : Checkout
138
168
uses : actions/checkout@v3
169
+
139
170
- name : Base Setup
140
171
uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
172
+
141
173
- name : Install the Python dependencies
142
174
run : |
143
175
pip install --pre -e ".[test]"
176
+
144
177
- name : List installed packages
145
178
run : |
146
179
pip freeze
147
180
pip check
181
+
148
182
- name : Run the tests
149
183
run : |
150
184
pytest -vv -W default || pytest -vv --lf
@@ -166,8 +200,10 @@ jobs:
166
200
timeout-minutes : 15
167
201
steps :
168
202
- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
203
+
169
204
- name : Download sdist
170
205
uses : actions/download-artifact@v3
206
+
171
207
- name : Install From SDist
172
208
shell : bash
173
209
run : |
@@ -177,9 +213,10 @@ jobs:
177
213
mkdir test
178
214
tar --strip-components=1 -zxvf *.tar.gz -C ./test
179
215
cd test
216
+ python -m pip install "jupyterlab>=4.0.0,<5"
180
217
python -m pip install ".[test]"
181
- python -m pip install jupyterlab
182
218
echo "::endgroup::"
219
+
183
220
- name : Run Test
184
221
shell : bash
185
222
run : |
0 commit comments