Skip to content

Commit 068c8ac

Browse files
committed
ci: fix Python setup in correctness job
Drop pip caching from the correctness workflow because this repo only needs the interpreter there, not a pip dependency manifest, so the job can reach data generation and cross-language checks again.
1 parent cadb793 commit 068c8ac

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ jobs:
181181
uses: actions/setup-python@v5
182182
with:
183183
python-version: '3.11'
184-
cache: pip
185184

186185
- name: Generate test data
187186
run: python3 tests/gen_testdata.py
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Workflow Python Setup 修正
2+
3+
日期:2026-03-13
4+
5+
## 变更内容
6+
7+
- 移除 `Test Correctness` job 中 `actions/setup-python``cache: pip`
8+
- 保留 Python 3.11 运行时与原有跨语言 correctness 验证流程
9+
- 避免在没有 Python 依赖清单的仓库里触发缓存配置错误,恢复正确性测试 job 的可执行性
10+
11+
## 背景
12+
13+
该仓库的 correctness job 只需要 Python 解释器来生成测试数据,并不依赖 `requirements.txt` 或其他 pip 依赖锁文件。此前启用 pip cache 会让 `setup-python` 在 Hosted Runner 上直接失败,导致整条 correctness 验证提前中断。

0 commit comments

Comments
 (0)