You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PR previews: the Colab job's Netlify deploy replaces the site build's preview link #879
Two workflows deploy each pull request to the same Netlify site, and whichever finishes last decides where the pull request's preview link points. On recent pull requests that is often the Google Colab execution test, not the site build.
What happens
ci.yml builds the site in the conda environment from environment.yml. collab.yml runs the lectures in the Google Colab runtime image (us-docker.pkg.dev/colab-images/public/runtime:latest), where Python lives under /usr/local. Both end with a "Preview Deploy to Netlify" step using nwtgck/actions-netlify@v4.0, with the same site, token and deploy message. The action edits a single bot comment on the pull request ("Deployed on …") and sets the "Netlify" commit status, so the job that deploys second overwrites the first one's link.
The bot comment was updated to the Colab deploy at 22:16:54Z on 2026-11-22, and the "Netlify" status points there too.
What a reviewer then sees on fitting_distributions is the Colab build:
a yfinance FutureWarning that the live site doesn't have;
pandas 2 display formatting;
last-digit float differences.
None of these comes from the pull request. Against the site build's preview, the live site's fitting_distributions and inflation_history differ only by the pull request's own changes, and all 26 figures on those pages are byte-identical.
Possible changes
Deploy only from ci.yml, and have collab.yml keep uploading its execution reports without deploying.
Or keep the Colab deploy but separate it. actions-netlify v4.0 has inputs for this: alias, enable-pull-request-comment, enable-commit-comment and enable-commit-status.
Status
This may not be fixed here, because the plan is likely to move the lecture repositories' workflows to QuantEcon/actions (mmcky, 2026-11-23). It is recorded so the move keeps one preview link per pull request, and so reviewers know the current link can show the Colab build.
Activity