Skip to content

Add playwright tests #1

Add playwright tests

Add playwright tests #1

Workflow file for this run

name: Test Python
on: [push, pull_request]
jobs:
test_python:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['3.10', '3.12']
steps:
- uses: actions/checkout@v2
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
env:
UV_PYTHON: ${{ matrix.version }}
- uses: actions/setup-node@v3
with:
node-version: 22
- uses: pnpm/action-setup@v4
working-directory: tests-widget

Check failure on line 22 in .github/workflows/test_widget.yml

View workflow run for this annotation

GitHub Actions / Test Python

Invalid workflow file

The workflow is not valid. .github/workflows/test_widget.yml (Line: 22, Col: 9): Unexpected value 'working-directory'
name: Install pnpm
with:
run_install: |
- cwd: tests-widget
package_json_file: tests-widget/package.json
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Install vitessce
run: uv sync --extra dev --extra all
- name: Export notebook to HTML
run: uv run jupyter nbconvert --to=html --execute docs/notebooks/widget_from_dict.ipynb
- name: Check that widget renders in HTML output using Playwright
run: pnpm exec playwright test