You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/07/09 15:46:55 UTC
(tooling-trusted-release) branch main updated: Update the GitHub Action to use uv
This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 08b81f9 Update the GitHub Action to use uv
08b81f9 is described below
commit 08b81f991634d254d6fdeb167fec564dad0f7042
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Wed Jul 9 16:46:40 2025 +0100
Update the GitHub Action to use uv
---
.github/workflows/build.yml | 11 +++++------
Dockerfile.alpine | 2 +-
Dockerfile.ubuntu | 2 +-
3 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b7a5fd7..2752a39 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -12,7 +12,7 @@ permissions:
env:
LATEST_PY_VERSION: '3.13'
- POETRY_VERSION: '2.1.1'
+ UV_VERSION: '0.7.12'
jobs:
test:
@@ -29,10 +29,9 @@ jobs:
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
- - uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
+ - uses: astral-sh/setup-uv@v6
with:
- virtualenvs-in-project: true
- version: ${{ env.POETRY_VERSION }}
+ version: ${{ env.UV_VERSION }}
# Cache packages per python version, and reuse until lockfile changes
- name: Cache python packages
@@ -43,9 +42,9 @@ jobs:
key: venv-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
#if: steps.cache.outputs.cache-hit != 'true'
- run: poetry sync -v --without=dev
+ run: uv sync --no-dev
# Run tests
- name: Run tests
run: |
- poetry run pytest -rs tests
+ uv run pytest -rs tests
diff --git a/Dockerfile.alpine b/Dockerfile.alpine
index 69a09d5..2e4e5fd 100644
--- a/Dockerfile.alpine
+++ b/Dockerfile.alpine
@@ -4,7 +4,7 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PYTHONUNBUFFERED=1 \
- UV_VERSION=0.7.19
+ UV_VERSION=0.7.12
RUN apk update && \
apk add --no-cache \
diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu
index 7dd4c17..8b4ffc0 100644
--- a/Dockerfile.ubuntu
+++ b/Dockerfile.ubuntu
@@ -5,7 +5,7 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
PYTHONUNBUFFERED=1 \
- UV_VERSION=0.7.19
+ UV_VERSION=0.7.12
RUN apt-get update && \
apt-get install -y \
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org