Skip to content

Commit

Permalink
CI: Use uv on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Feb 7, 2025
1 parent 724cbc5 commit 8b995d3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,17 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'

- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
cache-dependency-glob: |
setup.py
enable-cache: true
version: "latest"

- name: Build package
run: |
alias pip="uv pip"
make build
10 changes: 10 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Set up uv
uses: astral-sh/setup-uv@v5
with:
cache-dependency-glob: |
setup.py
cache-suffix: ${{ matrix.python-version }}
enable-cache: true
version: "latest"

- name: Install PlantUML on Linux
if: matrix.os == 'ubuntu-latest'
run: |
Expand All @@ -46,4 +55,5 @@ jobs:

- name: Build docs
run: |
alias pip="uv pip"
cd docs && make check

0 comments on commit 8b995d3

Please sign in to comment.