Skip to content

Commit 56ddbb3

Browse files
committed
ci: Update to use uv
1 parent d33f7b1 commit 56ddbb3

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/pypi-build-publish.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616

17-
- name: Build sdist
18-
run: pipx run build
17+
- name: Install uv and Python 3
18+
uses: astral-sh/setup-uv@v5
19+
with:
20+
enable-cache: true
21+
22+
- name: Build packages
23+
run: uv build
1924

2025
- uses: actions/upload-artifact@v4
2126
with:

.github/workflows/python-tests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ permissions:
1313

1414
jobs:
1515
build:
16-
1716
runs-on: ubuntu-latest
1817
strategy:
1918
fail-fast: false
@@ -25,13 +24,14 @@ jobs:
2524
with:
2625
fetch-depth: 0
2726

28-
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v5
27+
- name: Install uv and Python ${{ matrix.python-version }}
28+
uses: astral-sh/setup-uv@v5
3029
with:
3130
python-version: ${{ matrix.python-version }}
31+
enable-cache: true
3232

33-
- name: Install dependencies
34-
run: python -m pip install .[test]
33+
- name: Install the project
34+
run: uv sync --dev
3535

3636
- name: Run tests
37-
run: python -m pytest
37+
run: uv run pytest

0 commit comments

Comments
 (0)