fix: try downloading Python directly
Some checks failed
CI / test (push) Failing after 2s

This commit is contained in:
2026-03-22 17:16:37 +00:00
parent 8ab42fad20
commit 8e058aeefc

View File

@@ -8,23 +8,24 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install Python with timeout - name: Check system
run: | run: |
timeout 120 apt-get update || echo "apt-get update timed out or failed" uname -a
timeout 120 apt-get install -y python3 python3-pip || echo "apt-get install timed out or failed" cat /etc/os-release 2>/dev/null | head -5
- name: Verify Python - name: Install Python
run: | run: |
if ! command -v python3 &> /dev/null; then
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
curl -sSL https://www.python.org/ftp/python/3.11.0/python-3.11.0-linux-x86_64.tar.gz -o python.tar.gz
tar -xzf python.tar.gz
export PATH="/app/python-3.11.0:$PATH"
fi
python3 --version python3 --version
pip3 --version
- name: Install deps - name: Install deps
run: | run: pip3 install -e ".[dev]"
pip3 install -e ".[dev]"
- name: Lint - name: Lint
run: | run: ruff check src/
ruff check src/
- name: Type check - name: Type check
run: | run: mypy src/
mypy src/
- name: Test - name: Test
run: | run: pytest tests/ -v
pytest tests/ -v