Skip to content

Commit

Permalink
chore: use uv for docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoortheen committed Apr 24, 2024
1 parent 3b5f0b4 commit 499f354
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,20 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: "pyproject.toml"
- run: pip install -e '.[doc]'
- uses: yezz123/setup-uv@v4
- name: set current week
uses: mathiasvr/command-output@v2.0.0
id: current_week
with:
run: python -c "from datetime import date; print(date.today().isocalendar().week)"
- name: Cache uv pip for a week
id: cache-uv
uses: actions/cache@v4
with:
path: ${{ env.UV_CACHE_DIR }}
key: ${{ runner.os }}-uv-${{ hashFiles('pyproject.toml') }}-${{ steps.current_week.outputs.stdout }}
restore-keys: ${{ runner.os }}-uv-
- run: uv pip install --system -e '.[doc]'
- name: Build Docs
run: cd docs && make html
- uses: tibdex/github-app-token@v2
Expand Down

0 comments on commit 499f354

Please sign in to comment.