test: Phase 3 添加 smoke test、CI 与 run-daily 去重锁

离线 mock 测试 generate 产出,GitHub Actions 跑 pytest,30 分钟内重复调度自动 skip。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-03 14:45:58 +08:00
parent ebc25c9e9b
commit 8075ab78e8
8 changed files with 244 additions and 21 deletions

20
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: test
on:
push:
branches: [main]
pull_request:
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: Run tests
run: pytest -q