Skip to content

Commit cb3ec1e

Browse files
committed
👷 Switch to uv in ci
1 parent 078c77c commit cb3ec1e

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,17 @@ jobs:
2424
- uses: actions/checkout@v4
2525
- uses: actions/setup-python@v5
2626
with:
27-
cache: pip
2827
# Keep in sync with .readthedocs.yaml
2928
python-version-file: .python-version
30-
- run: python -m pip install -e ".[docs]"
31-
- run: python -m sphinx -nb html docs/ docs/_build/html
32-
- run: python -m sphinx -b linkcheck docs/ docs/_build/html
29+
- name: Setup cached uv
30+
uses: hynek/setup-cached-uv@v2
31+
- name: Create venv and install docs dependencies
32+
run: |
33+
uv venv
34+
echo "$PWD/.venv/bin" >> $GITHUB_PATH
35+
uv pip install -e ".[docs]"
36+
- name: Build HTML and check links
37+
run: |
38+
make html
39+
make linkcheck
40+
working-directory: docs/

.github/workflows/pages.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,20 @@ jobs:
3030
steps:
3131
- name: Checkout
3232
uses: actions/checkout@v4
33+
- name: Install packages
34+
run: sudo apt install plantuml
3335
- name: Setup python
3436
uses: actions/setup-python@v5
3537
with:
3638
python-version-file: .python-version
3739
architecture: x64
38-
- name: Install packages and requirements
40+
- name: Setup cached uv
41+
uses: hynek/setup-cached-uv@v2
42+
- name: Build and activate venv
3943
run: |
40-
sudo apt install plantuml
41-
python -m pip install -U pip
42-
python -m pip install -e ".[docs]"
44+
uv venv
45+
echo "$PWD/.venv/bin" >> $GITHUB_PATH
46+
uv pip install -e ".[docs]"
4347
- name: Setup Pages
4448
uses: actions/configure-pages@v5
4549
- name: Build HTML

0 commit comments

Comments
 (0)