From d456794f1acb9db526cdc5d16855415c7df5db0a Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 10 Feb 2026 21:35:45 +0100 Subject: [PATCH 1/3] CI: Trim `release` workflow. It will be fine using the default Python. --- .github/workflows/release.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68128f45..135575ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,13 +10,8 @@ permissions: jobs: pypi: - name: Build & publish package to pypi - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: ['ubuntu-latest'] - python-version: ['3.11'] + name: 'Build & publish package to PyPI' + runs-on: 'ubuntu-latest' if: startsWith(github.event.ref, 'refs/tags') steps: - uses: actions/checkout@v6 @@ -25,12 +20,6 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@v7 - with: - cache-dependency-glob: | - setup.py - cache-suffix: ${{ matrix.python-version }} - enable-cache: true - version: "latest" - name: Build package run: uv build From 6818ef6234ba529de83dde807c7174abf74d276b Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Tue, 10 Feb 2026 22:37:50 +0100 Subject: [PATCH 2/3] CI: Validate `release` workflow. Only push to PyPI on designated event. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 135575ae..79bd7b5c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,6 @@ jobs: pypi: name: 'Build & publish package to PyPI' runs-on: 'ubuntu-latest' - if: startsWith(github.event.ref, 'refs/tags') steps: - uses: actions/checkout@v6 with: @@ -25,6 +24,7 @@ jobs: run: uv build - name: Publish package to PyPI + if: startsWith(github.event.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ From 279b4a63c48fb21de909f0d10230c1504712e96e Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 11 Feb 2026 14:37:37 +0100 Subject: [PATCH 3/3] CI: Configure `astral-sh/setup-uv` to use the right Python version --- .github/workflows/tests.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2741607b..de3b0edc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,8 +56,7 @@ jobs: - name: Set up uv uses: astral-sh/setup-uv@v7 with: - cache-dependency-glob: | - pyproject.toml + python-version: ${{ matrix.python-version }} cache-suffix: ${{ matrix.python-version }} enable-cache: true activate-environment: true