Add Gitea Actions CI workflow (lint, typecheck, test matrix)
Some checks failed
CI / lint (push) Failing after 2m12s
CI / typecheck (push) Failing after 38s
CI / test (3.11) (push) Failing after 43s
CI / test (3.12) (push) Failing after 32s
CI / test (3.13) (push) Failing after 36s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Aaron D. Lee 2026-04-01 18:16:11 -04:00
parent 51c9b0a99a
commit f5f1c45890

45
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,45 @@
name: CI
on:
push:
branches: [main, master]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- 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
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install mypy
- run: mypy src/
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run tests
run: pytest --cov=soosef --cov-report=term-missing