Skip to content

Commit 180ada7

Browse files
authored
Update the docs ci uses uv (#19)
1 parent 52bf94f commit 180ada7

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818
- uses: actions/checkout@v4
1919

2020
- name: Install uv
21-
uses: astral-sh/setup-uv@v3
21+
uses: astral-sh/setup-uv@v6
2222

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

2626
- name: Install dependencies
2727
run: |
28-
uv sync --group lint
28+
uv sync
2929
3030
- name: Run lint
3131
run: |

.github/workflows/docs.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: docs
2+
23
on:
34
push:
45
branches:
56
- master
7+
68
permissions:
79
contents: write
810

@@ -12,23 +14,30 @@ jobs:
1214
if: github.event.repository.fork == false
1315
steps:
1416
- uses: actions/checkout@v4
17+
1518
- name: Configure Git Credentials
1619
run: |
1720
git config user.name github-actions[bot]
1821
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
19-
- uses: actions/setup-python@v5
20-
with:
21-
python-version: 3.x
22+
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v6
25+
26+
- name: Set up Python
27+
run: uv python install
28+
2229
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
30+
2331
- uses: actions/cache@v4
2432
with:
2533
key: mkdocs-material-${{ env.cache_id }}
2634
path: .cache
2735
restore-keys: |
2836
mkdocs-material-
37+
2938
- run: sudo apt-get install pngquant
30-
- run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material.git
31-
- run: pip install mkdocs-glightbox
32-
- run: mkdocs gh-deploy --force
39+
- run: uv sync --group docs
40+
- run: uv run mkdocs gh-deploy --force
41+
3342
env:
3443
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)