Skip to content

Commit 52abe10

Browse files
ci: run PR87 CV scoring review fix
1 parent 6365199 commit 52abe10

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: PR87 review-fix CV scoring
2+
3+
on:
4+
push:
5+
branches:
6+
- agent/maintenance-0.2.4-0.2.5
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
review-fix:
13+
if: github.actor != 'github-actions[bot]'
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 45
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: agent/maintenance-0.2.4-0.2.5
20+
fetch-depth: 0
21+
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.11'
25+
26+
- name: Apply reviewed CV scoring patch
27+
run: python dev/.pr87_cv_scoring_patch.py
28+
29+
- name: Install validation dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
python -m pip install -e ".[validation,formula]"
33+
python -m pip install ruff
34+
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
35+
36+
- name: Run CV scoring and adjacent contracts
37+
run: |
38+
python -m pytest \
39+
dev/tests/test_pr87_code_review_fix_cycle.py \
40+
dev/tests/test_maintenance_024_025.py \
41+
dev/tests/test_penalized_cv_refit.py \
42+
-q --tb=short
43+
44+
- name: Run complete CPU test tree
45+
run: python -m pytest dev/tests -q --tb=short
46+
47+
- name: Run documentation and static gates
48+
run: |
49+
python dev/validation/fix_docs_links.py --check
50+
python dev/validation/check_docs_contracts.py
51+
python -m compileall -q statgpu dev/validation dev/benchmarks
52+
ruff check \
53+
statgpu/linear_model/penalized/_penalized_cv.py \
54+
dev/tests/test_pr87_code_review_fix_cycle.py \
55+
dev/tests/test_maintenance_024_025.py \
56+
--select F821,E9,F63,F7,F82
57+
git diff --check
58+
python -m pytest --collect-only -q
59+
60+
- name: Commit reviewed fix and self-delete
61+
run: |
62+
git config user.name "github-actions[bot]"
63+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
64+
git add \
65+
statgpu/linear_model/penalized/_penalized_cv.py \
66+
dev/tests/test_pr87_code_review_fix_cycle.py \
67+
dev/tests/test_maintenance_024_025.py
68+
git rm \
69+
dev/.pr87_cv_scoring_patch.py \
70+
.github/workflows/pr87-review-fix-cv-scoring.yml
71+
git commit -m "fix: preserve CV scoring programming errors"
72+
git push origin HEAD:agent/maintenance-0.2.4-0.2.5

0 commit comments

Comments
 (0)