From acfb442c6caafaa3a598ffab3d4f5cf38c474f13 Mon Sep 17 00:00:00 2001 From: Aleksandr Meshchriakov Date: Mon, 23 Mar 2026 11:46:20 +0100 Subject: [PATCH] fix(ci): use managed python for test workspace --- .gitea/workflows/ci-cd.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 40b11ad..023a71c 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -46,13 +46,8 @@ jobs: timeout 180s "${BOOTSTRAP_PYTHON}" -m pip install --user --break-system-packages --upgrade pip uv export PATH="$HOME/.local/bin:$PATH" - - if "${BOOTSTRAP_PYTHON}" -c 'import sys; raise SystemExit(0 if sys.version_info >= (3, 11) else 1)'; then - PYTHON_BIN="${BOOTSTRAP_PYTHON}" - else - timeout 300s uv python install "${PYTHON_VERSION}" - PYTHON_BIN="${PYTHON_VERSION}" - fi + timeout 300s uv python install "${PYTHON_VERSION}" + PYTHON_BIN="$(uv python find --managed-python "${PYTHON_VERSION}")" printf 'PYTHON_BIN=%s\n' "${PYTHON_BIN}" > .ci-python-env @@ -137,13 +132,8 @@ jobs: timeout 180s "${BOOTSTRAP_PYTHON}" -m pip install --user --break-system-packages --upgrade pip uv export PATH="$HOME/.local/bin:$PATH" - - if "${BOOTSTRAP_PYTHON}" -c 'import sys; raise SystemExit(0 if sys.version_info >= (3, 11) else 1)'; then - PYTHON_BIN="${BOOTSTRAP_PYTHON}" - else - timeout 300s uv python install "${PYTHON_VERSION}" - PYTHON_BIN="${PYTHON_VERSION}" - fi + timeout 300s uv python install "${PYTHON_VERSION}" + PYTHON_BIN="$(uv python find --managed-python "${PYTHON_VERSION}")" printf 'PYTHON_BIN=%s\n' "${PYTHON_BIN}" > .ci-python-env