Skip to content

Commit 79c9516

Browse files
authored
Add matrix strategy for CI workflow scripts
1 parent 8df928b commit 79c9516

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,32 @@ on: [push, pull_request]
33
jobs:
44
verify:
55
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
script:
10+
- validate_math_tree_softmax.py # numpy 单库(约 1 分钟内)
11+
- validate_math_tree_softmax_torch.py # numpy+torch 双库(约 1-2 分钟)
12+
- validate_math_vapo_discrete_learning.py # VAPO(约 1-2 分钟)
13+
- validate_math_vapo_baselines.py # P0: VAPO 基线对照(约 30s;B2 未证实=发现,exit 0)
14+
- validate_math_padic_vp.py # P0: ℓ=v_p 记号互证(约 2s)
15+
- validate_math_mutation.py # P0: 突变测试 kill rate(约 1s)
616
steps:
717
- uses: actions/checkout@v4
818
- uses: actions/setup-python@v5
919
with: { python-version: '3.12' }
20+
- name: Cache pip
21+
uses: actions/cache@v4
22+
with:
23+
path: ~/.cache/pip
24+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
25+
restore-keys: |
26+
${{ runner.os }}-pip-
1027
- name: Install dependencies
1128
run: |
1229
if [ -f requirements.txt ]; then pip install -r requirements.txt
1330
elif [ -f requirements.md ]; then pip install -r requirements.md
1431
else echo "No requirements file found — skipping dependency installation"
1532
fi
16-
- run: python verification/validate_math_tree_softmax.py
17-
- run: python verification/validate_math_vapo_discrete_learning.py
18-
- run: python verification/validate_math_tree_softmax_torch.py
33+
- name: Run ${{ matrix.script }}
34+
run: python verification/${{ matrix.script }}

0 commit comments

Comments
 (0)