From f95a42b80fc31ee8108874a2566638ad3de22d3f Mon Sep 17 00:00:00 2001 From: CodeAlex52 <59381946+CodeAlex52@users.noreply.github.com> Date: Sun, 11 Oct 2026 15:21:39 +0800 Subject: [PATCH] ci: add GitHub Actions offline suite (pytest + ruff + mypy) --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..61f91f2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + offline-suite: + name: pytest + ruff + mypy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install (editable + dev extras) + run: | + python -m pip install --upgrade pip + pip install -e ".[dev]" + + - name: Tests (offline, deterministic) + # Mirrors FAST=1 in scripts/reproduce_all.sh: the slow SIGKILL + # recovery suite stays a local/pre-release gate. + run: pytest -q -m "not slow" + + - name: Ruff + run: ruff check + + - name: mypy (strict) + run: mypy src/agentcorp diff --git a/README.md b/README.md index 709d0f9..3cf8f40 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # AgentCorp — Recursive Delivery OS +[![CI](https://github.com/CodeAlex52/AgentCorp/actions/workflows/ci.yml/badge.svg)](https://github.com/CodeAlex52/AgentCorp/actions/workflows/ci.yml) + > `(git repo, natural-language PRD)` → **reviewed, tested delivery** + auditable event ledger + reproducible benchmark report. AgentCorp is a local-first, event-sourced, crash-recoverable, budget-bounded multi-agent