Files
poke-mail/.gitea/workflows/ci.yml
T
soconnorandClaude Sonnet 5 3e816beb6e
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
Speed up CI: switch lint to ruff-action, drop broken pip cache
- 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>
2026-08-02 18:25:56 -04:00

49 lines
1.2 KiB
YAML

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
args: check src/
- uses: astral-sh/ruff-action@v3
with:
args: format --check src/
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: pip install -r requirements.txt
- name: Verify imports
run: python -c "from src.server import mcp; print('OK:', mcp.name)"
docker:
runs-on: ubuntu-latest
needs: [lint, build]
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: git.soconnor.dev
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
push: false
tags: poke-mail:test
cache-from: type=registry,ref=git.soconnor.dev/soconnor/poke-mail:buildcache