-
Notifications
You must be signed in to change notification settings - Fork 7
71 lines (62 loc) · 2.29 KB
/
Copy pathci.yml
File metadata and controls
71 lines (62 loc) · 2.29 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
python-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Syntax check — hermes-plugin
run: |
cd hermes-plugin
python -m py_compile services/workflow_service.py
python -m py_compile services/scheduler.py
python -m py_compile store/sqlite_store.py
python -m py_compile store/migrations.py
python -m py_compile core/dag.py
python -m py_compile core/fsm.py
python -m py_compile memory/working_memory.py
python -m py_compile memory/episodic_memory.py
python -m py_compile memory/semantic_memory.py
python -m py_compile models.py
python -m py_compile config.py
- name: Syntax check — evolution
run: |
python -m py_compile evolution/__init__.py
python -m py_compile evolution/pattern_detector.py
python -m py_compile evolution/skill_packager.py
python -m py_compile evolution/quality_scorer.py
- name: Import check
run: |
cd hermes-plugin
python -c "
from store.sqlite_store import SQLiteStore
from services.workflow_service import WorkflowService
from services.scheduler import Scheduler
from core.dag import build_dag, get_ready_steps
from core.fsm import transition, can_transition
from memory.working_memory import WorkingMemory
from memory.episodic_memory import EpisodicMemory
from memory.semantic_memory import SemanticMemory
from models import WorkflowState, StepState
print('All imports OK')
"
- name: Import check — evolution
run: |
python -c "
from evolution.pattern_detector import PatternDetector
from evolution.skill_packager import SkillPackager
from evolution.quality_scorer import QualityScorer
print('Evolution imports OK')
"
- name: Install pytest
run: pip install pytest pytest-asyncio
- name: Run tests
run: python -m pytest tests/ -v --tb=short