version 0.3.15 #7
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: docs | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| env: | |
| PYTHONUTF8: "1" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| cache-dependency-path: | | |
| pyproject.toml | |
| - name: Install package + docs deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[docs]" | |
| - name: Check benchmark artifacts | |
| run: | | |
| python scripts/export_benchmark_artifacts.py | |
| git diff --exit-code notebooks/benchmarks/RESULTS.md notebooks/benchmarks/_artifacts | |
| - name: Build docs | |
| run: | | |
| python -m sphinx -W -b html docs docs/_build/html |