Skip to content

Commit

Permalink
ci: try using uv in docbuild.yml
Browse files Browse the repository at this point in the history
Replaced the `hatch` scripts with the actual commands
  • Loading branch information
dangotbanned committed Dec 20, 2024
1 parent a45199a commit 710e363
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/docbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: docbuild

on: [push, pull_request]

env:
UV_SYSTEM_PYTHON: 1

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -11,15 +14,16 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
run: uv pip install -e ".[dev, all, doc]"
- name: Run doc:build-html
run: |
hatch run doc:build-html
mkdir -p doc/_images
uv run sphinx-build -b html -d doc/_build/doctrees doc doc/_build/html
- name: Run doc:doctest
run: |
hatch run doc:doctest
uv run sphinx-build -b doctest -d doc/_build/doctrees doc doc/_build/doctest

0 comments on commit 710e363

Please sign in to comment.