fieldwitness/.gitea/workflows/ci.yml
Aaron D. Lee 4aaf61e472
Some checks failed
CI / lint (push) Failing after 6s
CI / typecheck (push) Failing after 2s
CI / test (push) Failing after 2s
Fix CI for Gitea Actions runner: use Python container images
Replace actions/setup-python@v5 (skipped by act runner) with
python:3.12-slim container images so Python is available directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 18:22:16 -04:00

40 lines
847 B
YAML

name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
container:
image: python:3.12-slim
steps:
- uses: actions/checkout@v4
- run: pip install ruff black
- name: Check formatting
run: black --check src/ tests/ frontends/
- name: Lint
run: ruff check src/ tests/ frontends/
typecheck:
runs-on: ubuntu-latest
container:
image: python:3.12-slim
steps:
- uses: actions/checkout@v4
- run: pip install mypy
- run: mypy src/
test:
runs-on: ubuntu-latest
container:
image: python:3.12-slim
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run tests
run: pytest --cov=soosef --cov-report=term-missing