Skip to content

Sync to v1.0.0a2 (2026-02-19) #4259

Sync to v1.0.0a2 (2026-02-19)

Sync to v1.0.0a2 (2026-02-19) #4259

Workflow file for this run

name: Docs tests
on:
push:
branches:
- develop
- main
pull_request:
paths:
- '.github/workflows/tests_docs.yml'
- 'mrmustard/**'
- 'pyproject.toml'
jobs:
docs:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
HYPOTHESIS_PROFILE: ci
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.8.11"
python-version: "3.13"
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y graphviz
- name: Install dependencies
run: uv sync --no-editable --all-extras --group doc
- name: Run doctests
working-directory: ${{ runner.temp }}
run: |
uv run --no-sync --project ${{ github.workspace }} pytest --doctest-modules --pyargs mrmustard.physics.ansatz
uv run --no-sync --project ${{ github.workspace }} pytest --doctest-modules --pyargs mrmustard.lab
- name: Build docs
working-directory: ${{ runner.temp }}
run: >-
uv run --no-sync --project ${{ github.workspace }} sphinx-build
-W --keep-going
${{ github.workspace }}/doc
${{ github.workspace }}/doc/_build/html