Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update the docs ci uses uv
  • Loading branch information
wu-clan committed Oct 29, 2025
commit 9a1dafe66dfbec7f7fd9b39a44079931be13fd9e
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@v6

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: |
uv sync --group lint
uv sync

- name: Run lint
run: |
Expand Down
21 changes: 15 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: docs

on:
push:
branches:
- master

permissions:
contents: write

Expand All @@ -12,23 +14,30 @@ jobs:
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v4

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x

- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Set up Python
run: uv python install

- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV

- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-

- run: sudo apt-get install pngquant
- run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material.git
- run: pip install mkdocs-glightbox
- run: mkdocs gh-deploy --force
- run: uv sync --group docs
- run: uv run mkdocs gh-deploy --force

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}