ci: drop actions/setup-python, which hangs on this runner
Build and Push Image / Unit tests (push) Successful in 49s
Build and Push Image / Build and push image (push) Skipped

The setup-python action downloads a Python build from GitHub. This runner
cannot reach GitHub reliably for that, and the test job hung on it with no
output. The runner image already carries a usable python3, so the tests use
it directly and install into a local venv.
This commit is contained in:
2026-11-09 10:35:42 +10:00
parent 6e1189e319
commit ba65ec5a8f
+7 -5
View File
@@ -9,14 +9,16 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Python # NOTE: no actions/setup-python here. That action downloads a Python
uses: actions/setup-python@v5 # build from GitHub, which this runner cannot reach reliably - the job
with: # hung on it. The runner image already carries a usable python3, so
python-version: '3.11' # the tests use it directly.
- name: Show the Python version
run: python3 --version
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m venv .venv python3 -m venv .venv
. .venv/bin/activate . .venv/bin/activate
pip install --upgrade pip pip install --upgrade pip
pip install -r requirements-dev.txt pip install -r requirements-dev.txt