Set UV_PYTHON_PREFERENCE for the whole job

This commit is contained in:
Alexander Hess 2026-11-27 13:26:51 +01:00
commit aaeb9b1e72
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -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