Speed up CI: switch lint to ruff-action, drop broken pip cache
CI / lint (push) Successful in 8s
CI / build (push) Successful in 4s
Build & Push Container Image / build-and-push (push) Successful in 29s
CI / docker (push) Successful in 15s

- lint job now uses astral-sh/ruff-action instead of provisioning a
  full Python toolchain via setup-python just to pip install ruff —
  the action just downloads the standalone Ruff binary.
- build job's cache: pip was hanging on every run: the Gitea runner
  has no reachable Actions-cache backend, so setup-python's cache
  restore step was timing out on a connect (ETIMEDOUT) before
  falling back and continuing anyway. Removed since deps here are
  tiny and a cold install costs seconds, not minutes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-02 18:25:56 -04:00
co-authored by Claude Sonnet 5
parent 9f26098954
commit 3e816beb6e
+5 -7
View File
@@ -11,13 +11,12 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 - uses: astral-sh/ruff-action@v3
with: with:
python-version: "3.13" args: check src/
cache: pip - uses: astral-sh/ruff-action@v3
- run: pip install ruff with:
- run: ruff check src/ args: format --check src/
- run: ruff format --check src/
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -26,7 +25,6 @@ jobs:
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: "3.13" python-version: "3.13"
cache: pip
- run: pip install -r requirements.txt - run: pip install -r requirements.txt
- name: Verify imports - name: Verify imports
run: python -c "from src.server import mcp; print('OK:', mcp.name)" run: python -c "from src.server import mcp; print('OK:', mcp.name)"