Skip to content

Commit 9ef5725

Browse files
committed
fix(ci): workflow 拉全量 12 个月 + 重建模式
1 parent 63333eb commit 9ef5725

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/daily-update.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,18 @@ jobs:
3636
python -m pip install --upgrade pip
3737
pip install -r requirements.txt
3838
39-
- name: 1️⃣ Fetch latest A-share data (AKShare)
40-
run: python build/fetch_data.py
39+
# 注意:update_daily 是完全重建模式,需要完整历史 (~12 个月) 才能
40+
# 重新算出从 2025-07-11 开始的 equity_curve / monthly_returns。
41+
# BaoStock 走自家 TCP (data.baostock.com:31322),不被 GitHub runner 防火墙拦。
42+
- name: 1️⃣ Fetch A-share data (BaoStock, ~12 个月)
43+
run: python build/fetch_data.py --start 2025-06-15
44+
timeout-minutes: 15
4145

42-
- name: 2️⃣ Run model inference
46+
- name: 2️⃣ Run model inference (m2alpha.pt)
4347
run: python build/inference.py
48+
timeout-minutes: 5
4449

45-
- name: 3️⃣ Update docs/data/data.json
50+
- name: 3️⃣ Rebuild docs/data/data.json (strategy: 行业分散 top-10 + 滞后带)
4651
run: python build/update_daily.py
4752

4853
- name: 4️⃣ Commit + push if changed

0 commit comments

Comments
 (0)