Make CI pip indexes explicit with safe diagnostics and sequential fallback

This commit is contained in:
Pigway
2026-10-07 20:51:05 +08:00
parent 58823051ee
commit f7e65de0a2
5 changed files with 253 additions and 3 deletions
+8 -2
View File
@@ -4,6 +4,8 @@ jobs:
verify:
runs-on: ubuntu-latest
env:
CI_PIP_INDEX_URL: ${{ vars.CI_PIP_INDEX_URL }}
CI_PIP_FALLBACK_INDEX_URL: ${{ vars.CI_PIP_FALLBACK_INDEX_URL }}
DEBIAN_MIRROR: ${{ vars.DEBIAN_MIRROR }}
DEBIAN_SECURITY_MIRROR: ${{ vars.DEBIAN_SECURITY_MIRROR }}
steps:
@@ -11,7 +13,8 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.14'
- run: python -m pip install -e '.[test]'
- name: Install CI dependencies with index diagnostics and fallback
run: python scripts/ci-install.py
- run: python -m ruff check pigway_frame_flow tests scripts
- run: python -m ruff format --check pigway_frame_flow tests scripts
- run: python -m mypy pigway_frame_flow
@@ -23,4 +26,7 @@ jobs:
python scripts/ci-compose-verify.py
- name: Cleanup isolated Docker resources
if: always()
run: python scripts/ci-compose-verify.py --cleanup
run: |
if [ -n "${FRAME_FLOW_CI_COMPOSE:-}" ] && [ -f "$FRAME_FLOW_CI_COMPOSE" ]; then
python scripts/ci-compose-verify.py --cleanup
fi