Skip to content

Add notebooks to docs (#426) #16

Add notebooks to docs (#426)

Add notebooks to docs (#426) #16

Workflow file for this run

name: Test Widget
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
with:
run_install: |
- cwd: tests-widget
package_json_file: tests-widget/package.json
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
working-directory: ./tests-widget
- 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
working-directory: ./tests-widget