fix(ci): bootstrap python for artifact-based e2e job
Some checks failed
CI/CD Pipeline / Code Quality Checks (pull_request) Successful in 1m46s
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m48s
CI/CD Pipeline / Run Tests (pull_request) Successful in 3m58s
CI/CD Pipeline / Run Tests (push) Successful in 4m15s
CI/CD Pipeline / Run API Inventory E2E Tests (push) Failing after 58s
CI/CD Pipeline / Telegram Notify Success (push) Has been skipped
CI/CD Pipeline / Run API Inventory E2E Tests (pull_request) Failing after 3m6s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped

This commit is contained in:
2026-03-23 11:38:10 +01:00
parent 9791539503
commit 6ab54245d3

View File

@@ -232,10 +232,31 @@ jobs:
with:
name: ci-test-workspace
- name: Install Python and uv for artifact environment
run: |
set -euo pipefail
if command -v python3.11 >/dev/null 2>&1; then
BOOTSTRAP_PYTHON=python3.11
elif command -v python3 >/dev/null 2>&1; then
BOOTSTRAP_PYTHON=python3
else
echo "python3 is not available on the runner" >&2
exit 1
fi
timeout 180s "${BOOTSTRAP_PYTHON}" -m pip install --user --break-system-packages --upgrade pip uv
export PATH="$HOME/.local/bin:$PATH"
timeout 300s uv python install "${PYTHON_VERSION}"
- name: Extract prepared test workspace
run: |
set -euo pipefail
tar -xzf ci-test-workspace.tar.gz
ARCHIVE_PATH="$(find . -maxdepth 2 -name 'ci-test-workspace.tar.gz' -print -quit)"
if [ -z "${ARCHIVE_PATH}" ]; then
echo "ci-test-workspace.tar.gz not found after artifact download" >&2
exit 1
fi
tar -xzf "${ARCHIVE_PATH}"
- name: Run API inventory pytest suite
env: