Skip to content

Commit

Permalink
ci(docs): run docs build on python 3.12
Browse files Browse the repository at this point in the history
On 3.13, we get
`py:class reference target not found: pathlib._local.Path`,
which seems like a Sphinx issue rather than an issue with our
documentation.
  • Loading branch information
rg936672 committed Feb 4, 2025
1 parent 0930afc commit 2b69e01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
build:
name: Build documentation
runs-on: ubuntu-latest
env:
UV_PYTHON: 3.12
steps:
- uses: actions/checkout@v4
- name: Set up base Python
Expand All @@ -20,7 +22,7 @@ jobs:
# Note that this is just the version of Python that we use to run `uv` with.
# `uv` manages its own version of Python.
# For speed, we use the same version for both, but in principle these could differ.
python-version: 3.13
python-version: 3.12
- name: Set up uv cache directory location (Linux/Mac)
run: echo "UV_CACHE_DIR=${{ runner.temp }}/.uv-cache" >> $GITHUB_ENV
if: runner.os != 'Windows'
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.13"
python: "3.12"

sphinx:
configuration: documentation/source/conf.py
Expand Down

0 comments on commit 2b69e01

Please sign in to comment.