Skip to content

Commit fd0a557

Browse files
Add isolated property-test diagnostics
1 parent 9be90d4 commit fd0a557

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Diagnose property failures
2+
3+
on:
4+
push:
5+
branches:
6+
- claude/inference-comparison-4vlt4q
7+
paths:
8+
- .github/workflows/diagnose-property.yml
9+
- tests/property/**
10+
- src/nns/**
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
diagnose:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Check out branch
20+
uses: actions/checkout@v4
21+
with:
22+
ref: claude/inference-comparison-4vlt4q
23+
fetch-depth: 0
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
30+
- name: Install package and dependencies
31+
run: |
32+
python -m pip install -q -U pip
33+
python -m pip install -q build scikit-build-core nanobind pytest "numpy<2.5" scipy matplotlib hypothesis pytest-benchmark pytest-xdist
34+
python -m pip install -q -e .
35+
36+
- name: Capture property suite
37+
shell: bash
38+
run: |
39+
set +e
40+
mkdir -p diagnostics
41+
python -m pytest -vv -s tests/property > diagnostics/property.log 2>&1
42+
status=$?
43+
echo "OVERALL EXIT CODE: ${status}" >> diagnostics/property.log
44+
echo "${status}" > diagnostics/property.status
45+
exit 0
46+
47+
- name: Commit diagnostic log
48+
run: |
49+
git config user.name "github-actions[bot]"
50+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
51+
git add diagnostics/property.log diagnostics/property.status
52+
if git diff --cached --quiet; then
53+
echo "Diagnostic output unchanged."
54+
else
55+
git commit -m "Record property-test diagnostic output"
56+
git push origin HEAD:claude/inference-comparison-4vlt4q
57+
fi

0 commit comments

Comments
 (0)