Skip to content

feat: Adding robust unit support for pydantic models. #93

feat: Adding robust unit support for pydantic models.

feat: Adding robust unit support for pydantic models. #93

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "latest"
- name: Install the project
run: uv sync --group docs
- name: Generate docstring coverage badge
run: uv run docstr-coverage src --badge docs/source/_static
- name: Build Sphinx documentation
run: uv run sphinx-build docs/source/ docs/_build/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/
force_orphan: true