Skip to content

Commit 69017bc

Browse files
committed
CI: more uv, less pip
1 parent 6ff1a93 commit 69017bc

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
- package-ecosystem: "uv"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/workflows/publish.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
name: Build and publish to PyPI
22
on: push
3+
env:
4+
UV_PYTHON_DOWNLOADS: never
35
jobs:
46
build:
57
name: Build distribution
68
runs-on: ubuntu-latest
79
steps:
810
- uses: actions/checkout@v6
9-
- name: Set up Python
10-
uses: actions/setup-python@v6
11-
with:
12-
python-version: "3"
13-
- name: Install "build"
14-
run: |
15-
python -m pip install build
11+
- uses: astral-sh/setup-uv@v7
1612
- name: Build a binary wheel and a source tarball
17-
run: python -m build
13+
run: |
14+
uv build
1815
- name: Store the distribution packages
1916
uses: actions/upload-artifact@v6
2017
with:

.github/workflows/test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Run Tests
22
on: [push, pull_request]
33
env:
44
UV_PYTHON_DOWNLOADS: never
5+
UV_NO_DEV: 1
56
PYTEST_ADDOPTS: "--color=yes"
67
jobs:
78
tests:
@@ -43,15 +44,13 @@ jobs:
4344
run: |
4445
jackd --no-realtime -d dummy &
4546
- uses: actions/checkout@v6
46-
- name: Install uv
47-
uses: astral-sh/setup-uv@v7
48-
- name: Install Python package
47+
- uses: astral-sh/setup-uv@v7
48+
- name: Install (editable) Python package
4949
run: |
50-
uv sync --locked
51-
uv run jack_build.py
50+
uv run --locked jack_build.py
5251
- name: Run tests
5352
run: |
54-
uv run pytest
53+
uv run --group test pytest
5554
5655
docs:
5756
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)