diff --git a/.github/workflows/wiki-currency.yml b/.github/workflows/wiki-currency.yml index 2789d5d..9888f74 100644 --- a/.github/workflows/wiki-currency.yml +++ b/.github/workflows/wiki-currency.yml @@ -137,7 +137,19 @@ jobs: VER="${{ inputs.stack_version }}" if [ -n "$VER" ]; then echo "Installing pinned release autocti==$VER (pulls autonerves/autoarray/autofit)." - pip install "autocti==$VER" + # PyPI's CDN can serve this runner a stale index minutes after the upload + # (2026.11.22.1: PyAutoHands' wait_for_released_stack saw the release, this + # runner did not). Retry the exact pin, bypassing pip's cache; never fall + # back to an older or unpinned install (autolens_assistant#193). + for attempt in $(seq 1 10); do + pip install --no-cache-dir "autocti==$VER" && break + if [ "$attempt" -eq 10 ]; then + echo "::error::autocti==$VER not installable from PyPI after 10 attempts" + exit 1 + fi + echo "autocti==$VER not installable yet (attempt $attempt/10); retrying in 30 s" + sleep 30 + done else echo "Installing the CTI stack from the main source clones." pip install ./sources/PyAutoNerves ./sources/PyAutoFit ./sources/PyAutoArray ./sources/PyAutoCTI