17
17
lint :
18
18
runs-on : ubuntu-20.04
19
19
steps :
20
- - uses : actions/checkout@v3
20
+ - uses : actions/checkout@v4
21
21
- uses : actions/setup-python@v4
22
22
with :
23
23
python-version : ' 3.10'
36
36
- ' 3.7'
37
37
- pypy3.7
38
38
steps :
39
- - uses : actions/checkout@v3
39
+ - uses : actions/checkout@v4
40
40
- name : setup python for tox
41
41
uses : actions/setup-python@v4
42
42
with :
72
72
- pkg_desc
73
73
- dev
74
74
steps :
75
- - uses : actions/checkout@v3
75
+ - uses : actions/checkout@v4
76
76
- name : setup Python 3.10
77
77
uses : actions/setup-python@v4
78
78
with :
93
93
python-version : ' 3.10'
94
94
- name : install build
95
95
run : python -m pip install build
96
- - uses : actions/checkout@v3
96
+ - uses : actions/checkout@v4
97
97
- name : build package
98
98
run : python -m build --sdist --wheel . -o dist
99
99
- name : publish to PyPi
@@ -103,25 +103,49 @@ jobs:
103
103
user : __token__
104
104
password : ${{ secrets.pypi_password }}
105
105
106
+ build :
107
+ runs-on : ubuntu-latest
108
+ steps :
109
+ - name : setup python to build package
110
+ uses : actions/setup-python@v4
111
+ with :
112
+ python-version : ' 3.10'
113
+ - name : install build
114
+ run : python -m pip install build
115
+ - uses : actions/checkout@v4
116
+ - name : build package
117
+ run : python -m build --sdist --wheel . -o dist
118
+ - name : Upload builds
119
+ uses : actions/upload-artifact@v3
120
+ with :
121
+ name : dist ${{ github.run_number }}
122
+ path : ./dist
123
+
106
124
visual-regression-tests-ipw7 :
107
125
runs-on : ubuntu-latest
126
+ needs : [build]
108
127
109
128
steps :
110
129
- name : Checkout
111
- uses : actions/checkout@v3
130
+ uses : actions/checkout@v4
112
131
113
- - name : Setup conda
114
- uses : conda-incubator/setup-miniconda@v2
132
+ - name : Install Conda environment with Micromamba
133
+ uses : mamba-org/provision-with-micromamba@main
115
134
with :
116
- activate- environment : ipydatagrid-test-ipw7
135
+ environment-name : ipydatagrid-test-ipw7
117
136
environment-file : test-environment-ipyw7.yaml
118
137
python-version : 3.9
119
- mamba-version : ' *'
120
138
auto-activate-base : false
121
139
channels : conda-forge
122
140
141
+ - uses : actions/download-artifact@v3
142
+ with :
143
+ name : dist ${{ github.run_number }}
144
+ path : ./dist
145
+
123
146
- name : Install the package
124
- run : pip install -vv .
147
+ run : pip install -vv ipydatagrid*.whl
148
+ working-directory : dist
125
149
126
150
- name : Install Galata
127
151
run : |
@@ -130,7 +154,7 @@ jobs:
130
154
working-directory : ui-tests-ipw7
131
155
132
156
- name : Launch JupyterLab
133
- run : yarn run start:detached
157
+ run : yarn run start:detached &
134
158
working-directory : ui-tests-ipw7
135
159
136
160
- name : Wait for JupyterLab
@@ -147,56 +171,59 @@ jobs:
147
171
if : always()
148
172
uses : actions/upload-artifact@v3
149
173
with :
150
- name : ui-test-output
174
+ name : ui-test-output-ipw7
151
175
path : |
152
176
ui-tests-ipw7/playwright-report
153
177
ui-tests-ipw7/test-results
154
178
155
179
visual-regression-tests-ipw8 :
156
180
runs-on : ubuntu-latest
181
+ needs : [build]
157
182
158
183
steps :
159
184
- name : Checkout
160
- uses : actions/checkout@v3
185
+ uses : actions/checkout@v4
161
186
162
- - name : Setup conda
163
- uses : conda-incubator/setup-miniconda@v2
187
+ - name : Install Conda environment with Micromamba
188
+ uses : mamba-org/provision-with-micromamba@main
164
189
with :
165
- activate- environment: ipydatagrid-test-ipw8
190
+ environment-name : ipydatagrid-test-ipw8
166
191
environment-file : test-environment-ipyw8.yaml
167
192
python-version : 3.9
168
- mamba-version : ' *'
169
193
auto-activate-base : false
170
194
channels : conda-forge
171
195
196
+ - uses : actions/download-artifact@v3
197
+ with :
198
+ name : dist ${{ github.run_number }}
199
+ path : ./dist
200
+
172
201
- name : Install the package
173
- run : pip install -vv .
202
+ run : pip install -vv ipydatagrid*.whl
203
+ working-directory : dist
174
204
175
- - name : Install Galata
176
- run : |
177
- yarn install
178
- yarn playwright install chromium
205
+ - name : Install dependencies
206
+ shell : bash -l {0}
179
207
working-directory : ui-tests-ipw8
208
+ env :
209
+ PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD : 1
210
+ run : jlpm install
180
211
181
- - name : Launch JupyterLab
182
- run : yarn run start:detached
212
+ - name : Install browser
213
+ shell : bash -l {0}
214
+ run : npx playwright install chromium
183
215
working-directory : ui-tests-ipw8
184
216
185
- - name : Wait for JupyterLab
186
- uses : ifaxity/wait-on-action@v1
187
- with :
188
- resource : http-get://localhost:8888/api
189
- timeout : 20000
190
-
191
- - name : Run UI Tests
192
- run : yarn run test
217
+ - name : Execute integration tests
218
+ shell : bash -l {0}
193
219
working-directory : ui-tests-ipw8
220
+ run : npx playwright test
194
221
195
222
- name : Upload UI Test artifacts
196
223
if : always()
197
224
uses : actions/upload-artifact@v3
198
225
with :
199
- name : ui-test-output
226
+ name : ui-test-output-ipw8
200
227
path : |
201
228
ui-tests-ipw8/playwright-report
202
229
ui-tests-ipw8/test-results
0 commit comments