-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (27 loc) · 906 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (27 loc) · 906 Bytes
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
name: CI
# 提交前验证门禁:跑全部测试,并校验 SKILL.md / dist / 模板等产物与 prompts/ 主源同步。
# 任一漂移或测试失败即红,避免改了主源忘记重新 build。
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 安装 Python
uses: actions/setup-python@v5
with:
# 需要 tomllib(标准库,Python 3.11+)。
python-version: "3.12"
- name: 安装依赖
run: python -m pip install -r requirements.txt
- name: 代码风格(ruff)
run: |
python -m pip install ruff
python -m ruff check .
- name: 校验在线与离线产物均与 prompts/ 主源同步
run: python src/scripts/build_all.py --check
- name: 运行测试
run: python -m pytest -q