Skip to content

Commit ba94e8d

Browse files
committed
ci: add github quality gates for milestone regression and readiness
1 parent 6264c06 commit ba94e8d

File tree

3 files changed

+81
-0
lines changed

3 files changed

+81
-0
lines changed

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI Gates
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
concurrency:
10+
group: ci-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
quality-gates:
15+
name: Quality Gates (Python 3.11)
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 25
18+
env:
19+
OPENAI_API_KEY: ci-dummy-openai-key
20+
ANTHROPIC_API_KEY: ci-dummy-anthropic-key
21+
VISION_MODEL: moondream-local
22+
REQUIRE_INCEPTION: "0"
23+
TIMUS_LIVE_STATUS: "false"
24+
PYTHONUNBUFFERED: "1"
25+
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Python
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: "3.11"
34+
cache: "pip"
35+
cache-dependency-path: requirements-ci.txt
36+
37+
- name: Install CI dependencies
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install -r requirements-ci.txt
41+
42+
- name: Gate 1 - Syntax Compile
43+
run: |
44+
python -m py_compile \
45+
main_dispatcher.py \
46+
agent/base_agent.py \
47+
agent/providers.py \
48+
memory/memory_system.py \
49+
memory/reflection_engine.py \
50+
server/mcp_server.py \
51+
utils/embedding_provider.py \
52+
verify_milestone6.py
53+
54+
- name: Gate 2 - Regression Tests
55+
run: |
56+
pytest -q tests/test_milestone5_quality_gates.py tests/test_milestone6_e2e_readiness.py
57+
58+
- name: Gate 3 - Milestone Readiness
59+
run: |
60+
python verify_milestone6.py

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ pytest -q tests/test_milestone6_e2e_readiness.py
3333
python verify_milestone6.py
3434
```
3535

36+
CI-Gates (GitHub Actions):
37+
- Workflow: `.github/workflows/ci.yml`
38+
- Abgesicherte Gates:
39+
- `Gate 1`: Syntax-Compile (`python -m py_compile` auf Kernmodulen)
40+
- `Gate 2`: Regression-Tests (`tests/test_milestone5_quality_gates.py` + `tests/test_milestone6_e2e_readiness.py`)
41+
- `Gate 3`: Readiness-Check (`python verify_milestone6.py`)
42+
- CI-Dependencies: `requirements-ci.txt`
43+
3644
---
3745

3846
## Architektur

requirements-ci.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pytest==8.3.5
2+
pytest-asyncio==0.24.0
3+
4+
openai==1.101.0
5+
httpx==0.27.2
6+
python-dotenv==1.0.1
7+
requests==2.32.3
8+
PyYAML==6.0.1
9+
10+
jsonrpcserver==5.0.9
11+
chromadb==0.4.24
12+
numpy==1.26.4
13+
tiktoken==0.11.0

0 commit comments

Comments
 (0)