From 69017bc28f084f8ac8071c7f9da5d0e740298eef Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Fri, 19 Dec 2025 11:41:31 +0100 Subject: [PATCH] CI: more uv, less pip --- .github/dependabot.yml | 4 ++++ .github/workflows/publish.yml | 13 +++++-------- .github/workflows/test.yml | 11 +++++------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5ace460..c766b7e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,3 +4,7 @@ updates: directory: "/" schedule: interval: "weekly" + - package-ecosystem: "uv" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5effe9c..c037114 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,20 +1,17 @@ name: Build and publish to PyPI on: push +env: + UV_PYTHON_DOWNLOADS: never jobs: build: name: Build distribution runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - name: Set up Python - uses: actions/setup-python@v6 - with: - python-version: "3" - - name: Install "build" - run: | - python -m pip install build + - uses: astral-sh/setup-uv@v7 - name: Build a binary wheel and a source tarball - run: python -m build + run: | + uv build - name: Store the distribution packages uses: actions/upload-artifact@v6 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c8b2842..65abf7e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,6 +2,7 @@ name: Run Tests on: [push, pull_request] env: UV_PYTHON_DOWNLOADS: never + UV_NO_DEV: 1 PYTEST_ADDOPTS: "--color=yes" jobs: tests: @@ -43,15 +44,13 @@ jobs: run: | jackd --no-realtime -d dummy & - uses: actions/checkout@v6 - - name: Install uv - uses: astral-sh/setup-uv@v7 - - name: Install Python package + - uses: astral-sh/setup-uv@v7 + - name: Install (editable) Python package run: | - uv sync --locked - uv run jack_build.py + uv run --locked jack_build.py - name: Run tests run: | - uv run pytest + uv run --group test pytest docs: runs-on: ubuntu-latest