-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (37 loc) · 1.4 KB
/
test_widget.yml
File metadata and controls
39 lines (37 loc) · 1.4 KB
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
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 --extra notebook
- name: Export Jupyter notebook to HTML
run: uv run jupyter nbconvert --to=html --execute docs/notebooks/__ipynb__/widget_from_dict.ipynb
- name: Export Marimo notebook to HTML
run: uv run marimo export html docs/notebooks/marimo.mo.py -o docs/notebooks/marimo.mo.html
- name: Export Marimo notebook to HTML-WASM
run: uv run marimo export html-wasm docs/notebooks/marimo-wasm.mo.py -o docs/notebooks/marimo-wasm.mo.html --mode edit
- name: Check that widget renders in HTML output using Playwright
run: pnpm exec playwright test
working-directory: ./tests-widget