-
Notifications
You must be signed in to change notification settings - Fork 393
57 lines (46 loc) · 1.64 KB
/
step_tests-ui.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: test-ui
run-name: Run UI tests with Galata
on:
workflow_call:
permissions:
contents: read
jobs:
test-ui:
continue-on-error: false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
with:
python_version: 3.x
- name: Install from source
run: HATCH_BUILD_HOOKS_ENABLE=true python -m pip install -e '.[test-ui]'
- name: Uninstall jupyter-fs
run: |
# Uninstall jupyter-fs as it overrides the original browser-test.js to
# check its own functionality (https://github.com/jpmorganchase/jupyter-fs/blob/main/jupyterfs/browser-test.js)
pip uninstall jupyter-fs -y
- name: Install galata
working-directory: jupyterlab/packages/jupyterlab-jupytext-extension/ui-tests
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: |
pip install jupyterlab
jlpm install
- name: Install browser
working-directory: jupyterlab/packages/jupyterlab-jupytext-extension/ui-tests
run: jlpm playwright install chromium
- name: Integration tests
# https://github.com/mwouts/jupytext/issues/1294
if: false
working-directory: jupyterlab/packages/jupyterlab-jupytext-extension/ui-tests
run: jlpm playwright test
- name: Upload UI Test artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: ui-test-output
path: |
jupyterlab/packages/jupyterlab-jupytext-extension/ui-tests/test-results