-
Notifications
You must be signed in to change notification settings - Fork 385
48 lines (38 loc) · 1.27 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
name: test-ui
run-name: Run UI tests with Galata
on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ui-test
cancel-in-progress: true
jobs:
test-ui:
continue-on-error: false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install from source
run: python -m pip install -e .
- 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
working-directory: jupyterlab/packages/jupyterlab-jupytext-extension/ui-tests
run: jlpm playwright test
- name: Upload UI Test artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: ui-test-output
path: |
jupyterlab/packages/jupyterlab-jupytext-extension/ui-tests/test-results