From 05adbf7cc9a5ae3b221ba0ff8eb3b8794fb64aa8 Mon Sep 17 00:00:00 2001 From: zphinx Date: Mon, 4 May 2026 05:24:14 +0200 Subject: [PATCH] run --- .gitea/workflows/ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5011c6c..1687602 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -59,14 +59,10 @@ jobs: - name: Ensure Python and pip are available run: | - if command -v python3 >/dev/null 2>&1 && python3 -m pip --version >/dev/null 2>&1; then - python3 --version - exit 0 - fi - if command -v apt-get >/dev/null 2>&1; then apt-get update - apt-get install -y python3 python3-pip python3-venv + apt-get install -y python3.12 python3.12-venv python3-pip || \ + apt-get install -y python3 python3-pip python3-venv elif command -v dnf >/dev/null 2>&1; then dnf install -y python3 python3-pip elif command -v yum >/dev/null 2>&1; then @@ -76,11 +72,11 @@ jobs: exit 1 fi - python3 --version + python3.12 --version || python3 --version - name: Install package and dev dependencies run: | - python3 -m venv .venv + python3.12 -m venv .venv 2>/dev/null || python3 -m venv .venv . .venv/bin/activate python -m pip install --upgrade pip python -m pip install -e .[dev]