ci: ignore stale project venv in runner
Some checks failed
CI/CD Pipeline / Manual Action Help (push) Has been skipped
CI/CD Pipeline / Start Dev Containers in Dokploy (push) Has been skipped
CI/CD Pipeline / Quality Gate (push) Failing after 2s
CI/CD Pipeline / Drop and Recreate Dev Database (push) Has been skipped
CI/CD Pipeline / Build and Push Images (push) Has been skipped
CI/CD Pipeline / Deploy Dev in Dokploy (push) Has been skipped
CI/CD Pipeline / Internal Notify (push) Successful in 1s

This commit is contained in:
2026-04-28 16:22:53 +02:00
parent 45c637a14d
commit ab08402af9
2 changed files with 6 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ jobs:
- name: Install Python and uv
run: |
set -euo pipefail
rm -rf .venv .ci-python-env
PROJECT_PYTHON_VERSION="$(cat .python-version 2>/dev/null || printf '%s' "${PYTHON_VERSION}")"
PYTHON_BIN="$(./scripts/ensure-ci-python.sh "${PROJECT_PYTHON_VERSION}")"

View File

@@ -33,6 +33,11 @@ python_has_venv() {
print_if_usable() {
local candidate="$1"
case "${candidate}" in
"${PWD}/.venv/"*)
return 1
;;
esac
if python_matches "${candidate}" && python_has_venv "${candidate}"; then
printf '%s\n' "${candidate}"
exit 0