From 5d7d03a0a690d0d063aadd5494850e282147b301 Mon Sep 17 00:00:00 2001 From: Shaun Kruger Date: Wed, 2 Dec 2026 14:11:03 -0700 Subject: [PATCH] Use setup-uv instead of setup-python in CI actions/setup-python only ships binaries for Ubuntu releases, so it fails on the Debian-based Gitea act_runner image. setup-uv installs portable Python builds that work on any glibc Linux. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index f440c16..388e760 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -26,12 +26,13 @@ jobs: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v5 + uses: astral-sh/setup-uv@v6 with: python-version: "3.13" + activate-environment: true - name: Install package - run: pip install -e ".[dev]" + run: uv pip install -e ".[dev]" - name: Run tests run: pytest @@ -155,16 +156,17 @@ jobs: - name: Set up Python if: env.PYPI_TOKEN != '' - uses: actions/setup-python@v5 + uses: astral-sh/setup-uv@v6 with: python-version: "3.13" + activate-environment: true - name: Build distributions if: env.PYPI_TOKEN != '' env: SETUPTOOLS_SCM_PRETEND_VERSION: ${{ needs.build.outputs.version }} run: | - pip install build twine + uv pip install build twine python -m build twine check dist/*