Skip to content

Update to the latest galata / playwright #12

Update to the latest galata / playwright

Update to the latest galata / playwright #12

Workflow file for this run

name: UI tests
on:
push:
branches: main
pull_request:
branches: '*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
jupyterlab:
name: jupyterlab
runs-on: ubuntu-latest
env:
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/pw-browsers
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install the extension
run: |
set -eux
python -m pip install "jupyterlab>=4.0.0,<5"
./scripts/dev_install.sh
- name: Install tests dependencies
working-directory: ui-tests
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: 0
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: jlpm install
- name: Set up browser cache
uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/pw-browsers
key: ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }}
- name: Install browser
run: jlpm playwright install chromium
working-directory: ui-tests
- name: Execute integration tests
working-directory: ui-tests
run: |
jlpm test --retries=2
- name: Upload Playwright Test report
if: always()
uses: actions/upload-artifact@v4
with:
name: integration-jupyterlab
path: |
ui-tests/test-results
ui-tests/playwright-report
notebook:
name: notebook
runs-on: ubuntu-latest
env:
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/pw-browsers
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install the extension
run: |
set -eux
python -m pip install "notebook>=7.0.0,<8"
./scripts/dev_install.sh
- name: Install dependencies
working-directory: ui-tests
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: 0
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: jlpm install
- name: Set up browser cache
uses: actions/cache@v3
with:
path: |
${{ github.workspace }}/pw-browsers
key: ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }}
- name: Install browser
run: jlpm playwright install chromium
working-directory: ui-tests
- name: Execute integration tests
working-directory: ui-tests
run: |
jlpm test:notebook --retries=2
- name: Upload Playwright Test report
if: always()
uses: actions/upload-artifact@v4
with:
name: integration-notebook
path: |
ui-tests/test-results
ui-tests/playwright-report