From 705245304e70e34048820dbeb2eaa25a18af6271 Mon Sep 17 00:00:00 2001 From: Aleksandr Meshchriakov Date: Sun, 22 Mar 2026 13:44:27 +0100 Subject: [PATCH] fix(ci): remove apt-based Python bootstrap --- .gitea/workflows/ci-cd.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/ci-cd.yml b/.gitea/workflows/ci-cd.yml index 5e68d0a..ba586c1 100644 --- a/.gitea/workflows/ci-cd.yml +++ b/.gitea/workflows/ci-cd.yml @@ -35,19 +35,15 @@ jobs: - name: Install Python and uv run: | set -euo pipefail - export DEBIAN_FRONTEND=noninteractive - timeout 300s apt-get update - timeout 300s apt-get install -y software-properties-common curl - timeout 300s add-apt-repository -y ppa:deadsnakes/ppa - timeout 300s apt-get update - timeout 300s apt-get install -y python3.11 python3.11-venv timeout 180s bash -lc 'curl -LsSf https://astral.sh/uv/install.sh | sh' + export PATH="$HOME/.local/bin:$PATH" + timeout 300s uv python install "${PYTHON_VERSION}" - name: Create virtual environment and install dependencies run: | set -euo pipefail export PATH="$HOME/.local/bin:$PATH" - uv venv --python python3.11 + uv venv --python "${PYTHON_VERSION}" . .venv/bin/activate uv sync --dev --frozen @@ -112,19 +108,15 @@ jobs: - name: Install Python and uv run: | set -euo pipefail - export DEBIAN_FRONTEND=noninteractive - timeout 300s apt-get update - timeout 300s apt-get install -y software-properties-common curl - timeout 300s add-apt-repository -y ppa:deadsnakes/ppa - timeout 300s apt-get update - timeout 300s apt-get install -y python3.11 python3.11-venv timeout 180s bash -lc 'curl -LsSf https://astral.sh/uv/install.sh | sh' + export PATH="$HOME/.local/bin:$PATH" + timeout 300s uv python install "${PYTHON_VERSION}" - name: Create virtual environment and install dependencies run: | set -euo pipefail export PATH="$HOME/.local/bin:$PATH" - uv venv --python python3.11 + uv venv --python "${PYTHON_VERSION}" . .venv/bin/activate uv sync --dev --frozen