ci: drop actions/setup-python, which hangs on this runner
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user