-
Notifications
You must be signed in to change notification settings - Fork 27
51 lines (41 loc) · 1.56 KB
/
ci.yml
File metadata and controls
51 lines (41 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -e ".[dev,all]"
- name: Verify imports (v1.1+ public surface)
run: |
python -c "from agentflow import AgentOrchestrator, MuleSoftConnector, HybridIntentParser, LLMIntentParser; print('All imports OK')"
- name: Lint with ruff
run: ruff check agentflow/ tests/ experiments/ benchmarks/ examples/
- name: Run tests
run: pytest tests/ -v --tb=short
- name: Type-check new modules with mypy --strict
run: |
python -m mypy --strict \
agentflow/nlp/llm_provider.py \
agentflow/nlp/llm_intent_parser.py \
agentflow/nlp/hybrid_intent_parser.py \
agentflow/core/cyclic_workflow.py
- name: Smoke-run experiments and benchmarks
run: |
python -m experiments.routing_weight_ablation --requests 50 --grid 2 --seed 42 > /dev/null
python -m experiments.parser_quality_benchmark --json > /dev/null
python -m benchmarks.baseline_comparison --workflows 20 --concurrency 5 --steps 4 > /dev/null