Commit e7e9478
CI: guard against reading data-lectures over the LFS media host
A dataset URL on the wrong host fails in the reader's notebook, not in CI.
media.githubusercontent.com is the LFS *media* endpoint and routes per path,
serving a file only where that path is LFS-tracked in the repo the URL names.
Everything data-lectures publishes is plain git, so that host never resolves
for it — and the datasets folded in from high_dim_data are read from it
today, which means a mechanical org/repo swap that preserves the host breaks
every one of them.
Nothing in this repo would catch that. The data-audit dashboard that does
lives in QuantEcon/data-lectures and never runs on a pull request here — its
detection lag is up to seven days. This runs pre-merge, in the repo being
changed, and `grep -r` also walks lectures/_static/**/*.ipynb, which the
audit deliberately does not scan and this repo's build never executes.
Matches zero lines today (verified: exit 1), so it goes green on merge and is
armed before the fold rather than alongside it.
Gate 2 of QuantEcon/workspace-lectures#23 step 3. See QuantEcon/data-lectures
PLAN.md, repoint rule 6.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 7694e3e commit e7e9478
1 file changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments