Skip to content

Docs again

Docs again #161

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions: {}
jobs:
test:
name: test (py${{ matrix.python-version }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "3.15"
include:
- os: macos-latest
python-version: "3.14"
- os: windows-latest
python-version: "3.14"
steps:
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up python {{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Check lockfile
run: uv lock --check
- name: Install project
run: uv sync -p ${{ matrix.python-version }}
- name: Install ruff
uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b # v4.0.0
- name: ruff check
run: ruff check .
- name: ruff format
run: ruff format --check .
- name: Vendor toml-test corpus
run: git clone --depth 1 https://github.com/toml-lang/toml-test vendor/toml-test
- name: pytest
run: uv run pytest
- name: mypy
run: uv run mypy
- name: pytest (slow)
run: uv run pytest -m slow
docs:
name: docs build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.14"
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- name: Install docs dependencies
run: uv sync --group docs
- name: zensical build
run: uv run zensical build