Commit 3411b17
CI: download and preprocess real data so data-dependent tests actually run
Previously the workflow only ran pytest against the committed YAML
files, so every test gated on a preprocessed checkpoint (or a
downloads/ directory) silently skipped rather than running - not a
meaningful gate. Now the workflow downloads all configured years,
builds the parquet checkpoint, and regenerates the pending-headers
report before running pytest, so the full data-dependent suite
(duplicate-header detection, unresolved-header gating, year-over-year
coverage, etc.) actually executes.
Downloads and the checkpoint are cached (CBS's historical workbooks
are effectively immutable, and the checkpoint cache key is invalidated
whenever extraction-relevant code changes) to keep repeat runs fast.
The download step is best-effort (continue-on-error) so a transient
network hiccup doesn't hard-fail a run that already has a viable
cached checkpoint - the job only fails outright if neither a
checkpoint nor any downloaded data is available at all.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 22fbcb7 commit 3411b17
1 file changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
28 | 73 | | |
29 | 74 | | |
30 | 75 | | |
| |||
0 commit comments