docs: render LaTeX math via MathJax #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| name: test (py${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Sync dependencies | |
| run: uv sync --group test --python ${{ matrix.python-version }} | |
| # The detector-weight download is mocked in the tests (see tests/test_cli_run.py), | |
| # so the suite runs fully offline -- no network or weight cache needed. | |
| - name: Run tests | |
| run: uv run --python ${{ matrix.python-version }} pytest --cov=deeperfly --cov-report=term-missing | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| # Pinned to match .pre-commit-config.yaml. | |
| - name: Ruff lint | |
| run: uvx ruff@0.15.14 check | |
| - name: Ruff format | |
| run: uvx ruff@0.15.14 format --check | |
| - name: uv.lock in sync with pyproject.toml | |
| run: uv lock --check | |
| typecheck: | |
| name: typecheck (advisory) | |
| runs-on: ubuntu-latest | |
| # Non-blocking: pyright runs in "basic" mode (see [tool.pyright] in pyproject) | |
| # to surface real issues without gating on JAX/torch/jaxtyping dynamism. | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - name: Sync dependencies | |
| run: uv sync --group test | |
| - name: Pyright | |
| run: uv run --with pyright pyright |