Skip to content

Commit 7e79fef

Browse files
committed
ci: use uv for generating Sphinx docs
1 parent bd2a862 commit 7e79fef

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/sphinx.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ on:
55
- cron: '30 13 * * *'
66
jobs:
77
sphinx:
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v4
11-
- uses: actions/setup-python@v5
11+
- name: Install uv
12+
uses: astral-sh/setup-uv@v3
1213
with:
13-
python-version: '3.11'
14+
version: "0.4.29"
1415
- name: Run Sphinx
1516
run: |
16-
python -m pip install -r ci/requirements.txt
17-
python -m pip install --config-settings=--build-option=--no-c-backend .
18-
19-
python -m pip install Sphinx==5.3.0
17+
uv venv --python 3.12 venv
18+
source venv/bin/activate
19+
uv pip install -r ci/requirements.txt
20+
uv pip install --config-settings=--build-option=--no-c-backend .
21+
uv pip install Sphinx==5.3.0
2022
make -C docs html

0 commit comments

Comments
 (0)