Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,30 @@ jobs:
test-cmd: pytest --durations 20 --cov-branch --cov-report=xml --cov pymatviz --splits 4 --group ${{ matrix.split }} --splitting-algorithm least_duration
upload-coverage: strict

run-widget-demos:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Setup uv
uses: astral-sh/setup-uv@v6

- name: Build widget assets, install deps, run all demos
run: |
curl -fsSL https://deno.land/install.sh | sh
export PATH="$HOME/.deno/bin:$PATH"
cd pymatviz/widgets/web && deno task build && cd ../../..
uv pip install -e '.[test]' marimo nbconvert --system
python examples/widgets/vscode_interactive_demo.py
marimo export script examples/widgets/marimo_demo.py -o /tmp/marimo_flat.py && python /tmp/marimo_flat.py
jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=120 examples/widgets/jupyter_demo.ipynb --output /tmp/jupyter_out.ipynb

find-example-scripts:
runs-on: ubuntu-latest
outputs:
Expand Down
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ repos:
files: ^(readme\.md|pymatviz/.*\.py)$
pass_filenames: false

- repo: local
hooks:
- id: marimo-check
name: marimo check
entry: marimo check --strict
language: python
files: examples/widgets/marimo_demo\.py$
additional_dependencies: [marimo]

- repo: https://github.com/janosh/format-ipy-cells
rev: v0.1.11
hooks:
Expand Down
Loading
Loading