Commit ee02021
Skip golden-value tests when file absent (CI isolated-install fix)
CI's "Copy tests to isolated location" step runs tests against the
installed package from /private/tmp/tests/, but does NOT copy
benchmarks/ alongside. My parity tests hard-failed with
FileNotFoundError when the golden JSON was not present at the
expected relative path.
Follow the established repo convention for golden-value fixtures:
if not GOLDEN_PATH.exists():
pytest.skip("Golden values file not found; run: Rscript ...")
Matches the pattern used by test_csdid_ported.py,
test_chaisemartin_dhaultfoeuille_parity.py, test_survey_real_data.py,
test_survey_estimator_validation.py, and test_linalg_hc2_bm.py.
Parity tests still run as hard gates:
- when invoked from the repo root (local /pre-merge-check,
/ai-review-local, dev iteration)
- when benchmarks/ is present alongside tests/ in CI jobs
They skip in the isolated-install job where only tests/ is copied.
Net effect matches the shipping convention for all other
R-backed parity suites in this repo.
190 tests pass (unchanged).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 795b461 commit ee02021
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
| |||
0 commit comments