From aaeb9b1e722b5a705615db4faac5c6df2b25a98a Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Fri, 27 Nov 2026 13:26:51 +0100 Subject: [PATCH] Set `UV_PYTHON_PREFERENCE` for the whole job --- .forgejo/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 79fdc45..b1099de 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -38,6 +38,7 @@ jobs: DATABASE_URI: postgresql://user:password@postgres:5432/db GOOGLE_MAPS_API_KEY: AIzaDummyKeyForTests # Fake key to mock the Google API R_LIBS: /usr/lib/R/site-library + UV_PYTHON_PREFERENCE: only-managed # Only uv's Python has the headers to build `rpy2` steps: @@ -61,7 +62,7 @@ jobs: - name: Install the project run: | - uv sync --locked --python-preference only-managed + uv sync --locked # `TESTING=true` comes from `pyproject.toml` - name: Run the test suite