-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.57 KB
/
Copy pathci.yml
File metadata and controls
56 lines (47 loc) · 1.57 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
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
name: Tests + Smoke
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
working-directory: loop-engine
run: |
python -m pip install --upgrade pip
pip install pyyaml pytest ruff
- name: Lint (ruff — real bugs only: syntax + undefined names + pyflakes)
run: python -m ruff check --no-cache loop-engine/ skillforge/src/ skillforge/tests/
- name: Unit tests
working-directory: loop-engine
env:
PYTHONIOENCODING: utf-8
run: python -m pytest tests/ -q
- name: SkillForge unit tests
working-directory: skillforge
env:
PYTHONIOENCODING: utf-8
run: python -m pytest tests/ -q
- name: Smoke (dry_run orchestration)
working-directory: loop-engine
env:
PYTHONIOENCODING: utf-8
# dry_run 是默认模式 (不调模型, 不花钱), 验证 6 阶段编排能收敛 (exit 0)
run: python run.py src/sample/
- name: SkillForge status check
working-directory: skillforge
env:
PYTHONIOENCODING: utf-8
run: |
python -c "import sys; sys.path.insert(0,'.'); from src.skillforge import SkillForge; \
import json; print(json.dumps(SkillForge.create('.').status(), ensure_ascii=False))"