Skip to content

Commit

Permalink
ci(uv): Switch docbuild.yml to uv sync
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Jan 9, 2025
1 parent 20f2894 commit 449aaac
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/docbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: docbuild

on: [push, pull_request]

env:
UV_SYSTEM_PYTHON: 1

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -16,13 +13,18 @@ jobs:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: |
**/uv.lock
**/pyproject.toml
- name: Install dependencies
run: uv pip install -e ".[dev, all, doc]"
- name: Run doc:build-html
run: uv sync --all-extras
- name: Build docs
run: |
mkdir -p doc/_images
uv run sphinx-build -b html -d doc/_build/doctrees doc doc/_build/html
- name: Run doc:doctest
- name: Run doctests
run: |
uv run sphinx-build -b doctest -d doc/_build/doctrees doc doc/_build/doctest
Expand Down

0 comments on commit 449aaac

Please sign in to comment.