Repository navigation
Releases
Releases · QuantEcon/actions
v0.22.0
Added
deploy-release, a reusable workflow (.github/workflows/deploy-release.yml), and its caller,templates/deploy-release.yml: for a lecture repository whose site is built elsewhere and arrives as one of its releases. On a release published for apublish-*tag it deploys that release's site to GitHub Pages, and on a dispatch with a tag it deploys that tag's release, which is the rollback. Two jobs:uploadrestores the site withrestore-gh-pagesand uploads it withpublish-gh-pages'mode: upload, with read access alone;deploydeploys it withmode: deploy, in thegithub-pagesenvironment and thepagesconcurrency group. It names its actions at@v0. It does not push notebooks (#356). Its chapter isdocs/user/workflows/deploy-release.md, under a new Reusable workflows heading in the manual's index, andscripts/generate-docs.pywrites its tables from itson.workflow_calland checks a caller'swith:andsecrets:against it. (#355)preview-netlify,preview-cloudflare,preview-workers: two inputs, so that a repository that builds several sites from one folder of lectures can preview each site on one pull request.comment-keygives a preview a comment of its own: the key goes after both headings, as(dp), and into the hidden marker,<!-- quantecon-preview:<provider>:<key> -->, and the action finds and updates only the comment with its key, so no two sites' previews replace each other's comment. It is lowercase letters and digits in words joined by single dashes, at most 28 characters, and any other value fails the job, on every event.toc-filenames a site's_toc.yml: a changed.mdis then listed only when the toc names it, as a lecture inlectures-diror a page in the toc's own folder, and linked at the site's root as<page>.html, with the toc'sroot:page left out. The deploy's change detection and the placeholder read the toc with one reader, from the checkout and at the pull request's head; a toc they cannot read, or that names no page, is a warning, and the comment lists no lectures. Both inputs are empty by default, and then the comment, its marker and its links are unchanged. The key does not change where a preview is deployed: each site needs a deploy target of its own. (#336)
Changed
preview-netlify,preview-cloudflare,preview-workers,deploy-cloudflare: through Dependabot's lockfile bumps,preview-cloudflare,preview-workersanddeploy-cloudflarepin wrangler 4.166.0, up from 4.162.0, andpreview-netlifypins netlify-cli 27.20.1, up from 27.19.0. Neither raises its minimum Node, which stays at 22.12 for wrangler and 22.13 for netlify-cli. The harness installs each from its lockfile. (#348, #352)- Container images: both images hold a Chrome, and kaleido moves from 0.2.1 to 1.5.2, pinned exactly in both. kaleido 1 bundles no browser. The Chrome it downloads for itself goes under
$HOME, which a container job sets to/github/home, so the images held kaleido below 1.0 (#85), and in them a lecture environment that installs kaleido 1, as QuantEcon/lectures' shared environment does, could export no figure. The Chrome is Chrome for Testing 158.0.8127.36, pinned by version and SHA-256 as Node is, in/opt/chrome.BROWSER_PATHnames it, so kaleido finds it whateverHOMEa job sets. plotly stays at 6.7.0, the Anaconda 2026.07 baseline. With kaleido 0.2's bundled Chromium gone, each image grows by about 0.04 GB compressed and 0.13 GB on disk. The smoke fixture's export now checks that it goes through that Chrome, and that a 3D figure, which Chrome draws with WebGL in software, is not blank.scripts/check-base-pins.shnow also fails unless both Dockerfiles pin the same Miniconda, Node and Chrome. A repository that needs kaleido 0.2 back can installkaleido<1throughenvironment-update. Both images were rebuilt and smoke-tested, and:latestmoved on 2026-11-19, before this release. For an exported figure (#342):- Chrome 158 draws it with the image's fonts, now including Liberation's faces for Arial and Times, so its pixels and fonts differ from kaleido 0.2's;
- its LaTeX is typeset by MathJax 3.2.2 instead of 2.7.5, still fetched from cdnjs;
- each export starts a Chrome, so exports are slower;
- EPS export and kaleido's own
kaleido.scopesAPI are gone. No QuantEcon lecture uses either.
- Container images: both images move to the
ubuntu:24.04image of 2026-11-10, pinned by digest, through Dependabot's bump. It brings noble-security updates to apt, libapt-pkg and libpcre2, and the rebuilt apt layer takes the archive's current packages. Both images were rebuilt and smoke-tested, and:latestmoved on 2026-11-20, before this release. (#347)
v0.21.1
Changed
preview-netlify,preview-cloudflare,preview-workers,deploy-cloudflare: through Dependabot's lockfile bump,preview-cloudflare,preview-workersanddeploy-cloudflarepin wrangler 4.162.0, up from 4.158.0, andpreview-netlifypins netlify-cli 27.19.0, up from 27.16.2. Wrangler 4.162.0 refuses to run below Node 22.12, sodeploy-cloudflarenow sets up Node 24 where the runner's Node is older (below).preview-cloudflareandpreview-workersset up no Node of their own, so a job that runs them outside the images, which carry Node 24, needs Node 22.12 or later. The harness installs each from its lockfile. (#340)- Container images:
sphinx-proofmoves from 0.4.0 to 0.4.1 through Dependabot's bump, pinned exactly inquantecon, withquantecon-build's floor raised to match. The patch release fixes captioned figures insideprf:boxes, which broke the LaTeX build with "Not in outer par mode", and writes the figures inside everyprf:box as\begin{figure}[H], so they stay in place. Both images were rebuilt and smoke-tested, and:latestmoved on 2026-11-17, before this release. (#339)
Fixed
deploy-cloudflare: the action now sets up Node 24 when the runner's Node is 22.0 to 22.11. The pinned wrangler, now 4.162.0, refuses to run below Node 22.12.0, its minimum since 4.159.0, but the action's check read only the major version, so on such a runner it kept the runner's Node and the wrangler install failed. The check now compares the major and minor versions, and sets up Node 24 below 22.12, with nonode, or with a version it cannot read. The new harness jobdc-node-minimumruns the action on Node 22.11.0, where it must set up Node 24, and on 22.12.0, where it must keep the runner's Node and wrangler must run on it, so a wrangler bump that raises its minimum again fails the harness. The chapters ofdeploy-cloudflare,preview-cloudflareandpreview-workers, andpreview-netlify's comparison table, now give wrangler's minimum as Node 22.12. (#340)
v0.21.0
Fixed
⚠️ BREAKINGbuild-lectures: theerror-outputscheck now checks a page taken from the execution cache. myst-nb 1.4.0 renders such a page from jupyter-cache's executed copy, but writes the notebook to_build/jupyter_executewithout its outputs, and the check read only those. So it found no error output on a page the build did not execute itself: in a pull request's build over a restored execution cache, astemplates/ci.ymlsets up, and in a later build that rereads the pages, ashtmldoes afterpdflatexin a book with parts. Wherever myst-nb looks in the cache for a page (a book that setsexecute_notebooks: cache, for a page that no exclude pattern ormystnbsetting keeps out of it), the check now finds the page's copy in the cache as myst-nb does, and checks its outputs. A page the cache has no copy of was executed by the build, and is checked as written. A cache that cannot be read leaves its pages unchecked, and is reported as an unreadable notebook is, failing the step withfail. The inputs, the output and the annotations are unchanged; the log's summary line now says how many notebooks came from the cache. The new harness jobbuild-cache-error-guardexecutes a display-time error into the cache, then builds again withfail, once with--allover the same_buildand once over the execution cache alone: both used to pass. A site whose cached pages carry such a traceback now fails its build: fix the cell, tag a deliberate oneraises-exception, or seterror-outputs: 'warn'while it does. (#322)
Documentation
- Releases (CONTRIBUTING, Staged Releases): a release that changes what a build reports dispatches the lecture matrix at the candidate before
v0moves, and explains each red leg in the release PR. Oncev0has moved, the release dispatches the canary'scache.yml,ci.ymlandpublish.ymlon itsmain, which fetch the actions through@v0as a consumer does. The gate is dispatched outside the canary's Sunday schedules, with whosepublish.ymlit shares thepagesconcurrency group.TESTING.mddescribes the canary as QuantEcon/test-actions-lecture-intro#94 left it:templates/atv0on a Sunday schedule, with each deploy checked for its own build's marker file, which the release gate's deploy to the same GitHub Pages site cannot pass. It describes the canary watcher's new drift check too, which compares the canary's workflows withtemplates/atv0, apart from the differences.github/canary-drift.ymldeclares. (#302, #310) - Which actions live here (ARCHITECTURE, README): this repository holds the lecture pipeline, released together at
v0; any other action lives in its ownaction-<name>repository, which the README's new "Standalone actions" table lists. (#332)
v0.20.1
Fixed
build-jupyter-cache: when thejupyterbuild fails under-W --keep-going, the defaultextra-args, the failure issue now says that its command to reproduce the build exits 0 even when the build fails on warnings. sphinx-tojupyter ends the build withexit()and status 0 before Sphinx can fail it, so a local run of that command reported success, and onlybuild-lectures' check of the warnings (#300) failed it in CI. The issue names theWARNING:,ERROR:andCRITICAL:lines that check counts, and says that without--keep-goingthe build stops at the first warning and exits 1, which a local run with jupyter-book 1.0.4post1 and sphinx-tojupyter 0.6.0 confirmed. The commands keep the flags the build had. The note appears only when thejupyterbuild failed andextra-argsholds both flags, read asbuild-lectures' check reads them; without-Wa warning fails nothing.bjc-alertchecks the note for each set of flags, and runsbuild-lectures' own loop on them to check that the two agree. (#311)
v0.20.0
Changed
⚠️ BREAKINGbuild-lectures: a newnitpickinput,'true'by default, passes-ntojb buildfor every builder: Sphinx's nitpicky mode, which warns about every reference it cannot resolve, so that under-Wone fails the build. Thepdflatexandjupyterbuilders always passed-n, and now pass it through the input;nitpick: 'false'leaves it out. Thehtmlbuilder passed none, and now does: a site whose pages hold a reference that only nitpicky mode reports, such as a{py:func}naming a function no page documents, fails itshtmlbuild until the reference is fixed. A-nthat a caller also passes inextra-argsdoes no harm:jb buildtakes it twice. #300's check of ajupyterbuild's warnings reads-Wand--keep-goingfromextra-args, as before.build-jupyter-cachegetsnitpickandextra-argstoo, withbuild-lectures' defaults, passes both to each of its builds, and refuses anitpickother than'true'or'false'before setup. Its failure issue's commands to reproduce a build are built from them. It runsbuild-lectures@v0, so a caller pinned to an earlierbuild-jupyter-cachegets-non itshtmlcache build too, with no input to drop it, and moves to this release to set one. The new harness jobbuild-nitpickshows an unresolved reference failing anhtmland ajupyterbuild withnitpickon, and passing both with it off;bjc-alertchecks the commands and that each build is given both inputs. To migrate: fix each reference the build lists, accept its target innitpick_ignore_regexin_config.yml, or setnitpick: 'false'on eachbuild-lecturesandbuild-jupyter-cachestep while you do. (#97)
v0.19.0
Added
restore-gh-pagesandtemplates/restore.yml: puts a GitHub Pages site back as one of the repository's releases holds it, without a build, from the archive, checksum and manifest thatpublish-gh-pagesattaches on a tag. The action downloads the release's archive and checksum withgh, checks the archive's SHA-256 before anything is extracted, refuses an archive that holds anything but files and directories, and gives the extracted site asbuild-dir, with the commit it was built from ascommit. It reads only the repository's own releases, needs onlycontents: read, and finds the archive by its tag unlessasset-nameis given. The template, run by hand on the default branch with the release's tag, hands the site topublish-gh-pagesto deploy, inpublish.yml'spagesconcurrency group. The next publish replaces the restored site. (#27)
Changed
- Container images:
sphinx-exercisemoves from 1.2.1 to 1.2.2 in both images, which the full image pins and the lean image takes as its floor. The patch release writes a captioned figure inside an exercise or solution as\begin{figure}[H], as Sphinx does inside its own admonitions, so a PDF build no longer stops there withNot in outer par mode. HTML output is unchanged. Both images were smoke-tested before:latestmoved, and the lecture matrix then passed on all eight legs. (#312)
Fixed
⚠️ BREAKINGbuild-lectures: ajupyterbuild under-W --keep-going, the defaultextra-args, now fails on a warning, as the other builders do. It used to pass every warning. sphinx-tojupyter'sJupyterBuilder.finish()callsexit()with 0 inside Sphinx's build, before Sphinx turns the warnings that--keep-goingcounted into exit status 1. Sojb buildexited 0 whatever the build warned about, a cell that raised included. The release gate's staged-failure self-test showed it: only the error-output check caught the raised cell. The build step now keeps a copy ofjb build's stderr, Sphinx's warning stream. For thejupyterbuilder, whenjb buildexits 0 with both-Wand--keep-goinginextra-args, it fails the step on any warning in it, and lists each in a log group. The failure report then prints the failed notebooks' tracebacks, as for any failed build.-Walone already failed at the first warning, and without-Wnothing changes.build-jupyter-cachegets the same throughbuild-lectures@v0; it buildsjupyterfirst, so that build is the one that reads and executes the pages. The error-output check now tells a cell that raised, after which no code cell ran, from one whose output raised while it was displayed, after which one did. It says which in its annotation and in a Cause column in the step summary, where it used to say "The kernel reported this cell as successful" of both. The new harness jobbuild-jupyter-warning-guardshows a cleanjupyterbuild passing, a cell that raises failing the build step, the same warnings passing without-W, and the check's wording. The lecture matrix found one warning, in three lecture repositories: atojupyter_static_file_pathentry naming a directory the book does not have, which warnstojupyter_static_path entry … does not exist. Their pull requests drop that entry, and no other QuantEcon caller'sjupyterbuild logs a warning. To migrate: fix each warning the build step lists, such as by dropping that entry, or setextra-argswithout-Wfor thejupyterbuild while you do. (#300)
v0.18.0
Added
preview-workers: a new action that previews a pull request on an existing Cloudflare Worker, as Cloudflare moves static sites from Pages to Workers. It uploads the built site as a new version of the Worker withwrangler versions upload --preview-alias pr-<number>, which never changes what the Worker serves in production, athttps://pr-<number>-<worker-name>.<account-subdomain>.workers.dev, and comments on the pull request aspreview-netlifyandpreview-cloudflaredo, with a comment of its own. It has their trust gate,dispatch-alias,placeholderand outputs.deploy-urlis built from the inputs and checked against wrangler's record of the upload: a wrongaccount-subdomain, or a Worker whose preview URLs are off, fails the job rather than post a link that cannot load.deployment-urlis the version's own preview URL, which keeps showing that push. The wrangler config is generated for each run by the writerdeploy-cloudflareuses, now inscripts/, with no change todeploy-cloudflare. The token is an account-owned API token scoped to the one Worker, which the chapter shows how to make. (#145)
Changed
- Container images: builds of
mainoutside the kept window are now deleted from GHCR. A new monthly workflow,prune-images.yml, keepsmain's newest 10 builds and every version of the last 90 days, tagged or not, so every build of the last 90 days; the newest builds are the rollback targets. It keeps a dispatch from a branch for 14 days. It always keeps:latest, a pull request's candidates, every digest in.github/container-pins.txt, any version carrying a tag it does not own, and every manifest these list. Until now nothing was deleted: 338 versions ofquanteconhad built up, and 221 ofquantecon-build. A workflow that pins an image by digest keeps working while that build is kept. To keep a pin for longer, add its digest to.github/container-pins.txtin a pull request, or have the version tagged with a name that does not end in-<7 hex digits>. The one pin known in QuantEcon,quantecon-buildin the two theme test repositories, is in the file. A dispatch is a dry run unless told otherwise, a pull request that changes the pruner lists what it would delete, and a run with more than 50 versions of an image to delete deletes none. (#277) preview-netlify,preview-cloudflare,deploy-cloudflare: through Dependabot's lockfile bump,preview-cloudflareanddeploy-cloudflarepin wrangler 4.158.0, up from 4.156.1, andpreview-netlifypins netlify-cli 27.16.2, up from 27.16.1.preview-workersships with wrangler 4.158.0. The harness installs each from its lockfile and runs it. (#294)publish-gh-pages:softprops/action-gh-release, which attaches the release assets, moves from 3.0.3 to 3.0.4, through Dependabot's bump. The patch release classifies GitHub API errors more safely. (#295)- Container images:
quantecon-book-thememoves from 0.22.1 to 0.22.2 in both images, through Dependabot's bump. The patch release's dark-mode button is labelled "Toggle dark mode", and a site that sets no author no longer shows "Author name not set" in its page header. Both images were smoke-tested before:latestmoved. (#293)
Documentation
- Releases (CONTRIBUTING, Staged Releases): a release that changes an action passes the release gate before
v0moves. The gate isgate.ymlin the canary, QuantEcon/test-actions-lecture-intro, dispatched on itsmainwith the candidate, which it refuses unless it is reachable frommainor av*tag. It checks the candidate out and runs the actions from that checkout on a fixture whose image is pinned by digest and whose pages read nothing from the network:build-jupyter-cachecold with all three builders, its siblings at the candidate too; both cache restores; both previews and a GitHub Pages deploy, each checked for the candidate's build. It replaces the canary pull request andcache.ymldispatch that a staged release ran by hand, which now stage only what the gate does not reach: a preview's pull-request half,setup-environmentoutside a container,setup-latex,deploy-cloudflare,preview-workers, and a release's own scenarios. A red gate run frommainassigns arelease-gateissue in the canary to whoever dispatched it.TESTING.mddescribes the gate, andPLAN.mddrops items 0a, 0b and 0d. (#135, #136)
v0.17.0
Added
setup-latex: a new action that installs TeX Live, or any apt packages, on a standard Ubuntu runner, from a cache of the downloaded.debarchives. A plainapt-get installdownloads TeX Live from the runner's Ubuntu mirror on every run, 1.1 GB for the usual lecture list, and a slow mirror stalls that without ever failing: since September, 12 of 220 such steps in the lecture repositories took over 5 minutes, and the slowest ran for nearly 6 hours. The cache key hashes the packages installed on the host, so an exact hit installs the archives as local files with noapt-get updateand no download. A fallback restore, as after a new runner image, downloads only what the cache lacks. It caches archives, not installed files, so dpkg runs TeX Live's maintainer scripts as before.download-timeout-minutes, 30 by default, stops a download that runs longer, and'0'sets no limit. The cache is saved after the install, except on an exact hit or from a tag. The 15 lecture repositories that inline their ownapt-get install texlive-…step can switch with a one-step change, which the chapter shows. The work is inscripts/latex-packages.sh, forsetup-environment'sinstall-latexto share. (#224)
Changed
build-jupyter-cache,restore-jupyter-cache: the execution cache's key hashes the environment files too, asjupyter-cache-<hash of environment>-<hash of environment-update>-<hash of the lectures>-<run id>, and a restore falls back tojupyter-cache-<env>-<update>-, thenjupyter-cache-<env>-: the build cache's fallbacks. It used to hash the lectures alone and fall back to any execution cache..jupyter_cachechecks each notebook against its code, but not against the packages that executed it, so a pull request that changed the environment file restored outputs made with the old packages, re-executed nothing, and passed. Now it misses and executes every lecture, as it does with the build cache.environmentandenvironment-updateapply to both cache types. A workflow that already restorescache-type: executionmisses once afterv0moves, until its next cache build, and one that also setsfail-on-miss: 'true'should run its cache workflow once then; no QuantEcon workflow restoresexecution. The harness's newunit-exec-env-missrestores the seed's lectures under another environment file, and must miss. (#270)templates/ci.yml,templates/publish.yml: both restorecache-type: 'execution',_build/.jupyter_cachealone, instead of the build cache. The build cache brings back what the last cache build made, including what the source has deleted since. Since #160 the restore removes itshtml, but a build that makes the notebooks or the PDF over it can still copy a removed lecture's notebook, or a deleted PDF, into the site. The execution cache leaves nothing of the kind, and is several times smaller, so a restore downloads less, and a pull request'ssave-cachestores less. The rest of_buildsaves no work: a fresh checkout makes Sphinx rewrite every page. A repository that copied an older template setscache-type: 'execution'on the restore step of both.build-jupyter-cachestill saves the build cache, sincerestore-jupyter-cache's default restores it; whether it stops, or becomes opt-in, goes with a later change of that default (review M3). (#270)setup-environment:install-latexinstalls the LaTeX packages assetup-latexdoes, through the same script: from a cache of their downloaded archives, keyed oncache-version, the list and the packages installed on the host, with noapt-get updateand no download on an exact hit. It used to download them from the runner's Ubuntu mirror on every run, which a slow mirror can stall for hours. A new output,latex-cache-hit, says which way they came. On a run that downloads,apt-get updateand the download together are now stopped after 30 minutes, with no input to change it: a download that runs past 30 minutes now fails, where it used to finish slowly. No QuantEcon repository passesinstall-latex.build-jupyter-cachepasses it for apdflatexbuild in standard mode, and its three QuantEcon callers all run in a container. A repository that needs another limit can install LaTeX withsetup-latexand itsdownload-timeout-minutesinstead.cache-versionnow keys the LaTeX cache too, so a bump also downloads the packages afresh. Each entry in the list must be an apt package name, so an option such as--no-install-recommends, which apt used to take from the file, now fails the job. The messages for a missing or empty list now name the file. (#224)- Container images:
:latestmoves only once the image it will point at has passed the smoke test. Until now the merge's own build pushed:latestdirectly, andtest-container.ymltested it afterwards. That build is not the image its pull request tested: it rebuilds the changed layers, whose floating packages resolve again, and a dispatch or a direct push tomainwas tested by nothing.build-containers.ymlnow pushes only candidates,main-<sha>and onemain-<date>-<time>-<sha>tag for the run, and callstest-container.ymlon them twice, for the smoke test and for the size report. When every smoke test passes, a newpromotejob points:latestat the digest each build pushed, all the images together, withdocker buildx imagetools create, through a newscripts/promote-image.sh. The script first checks that each candidate tag still resolves to the digest pushed, then that:latestdoes after the move, and the job's step summary has the digests pushed, promoted and replaced, with the rollback command. A failed smoke test or promotion leaves:latestwhere it was and opens the failure tracking issue. A failed size report alerts too, but cannot hold a promotion back, since it fails on the measurement, not the image. A cancelled run alerts only when no newer run has superseded it. On any branch butmainthe promotion is a dry run, andvalidate-containers.ymldry-runs it on each pull request's candidates, with a self-test of the script on every harness run.test-container.ymlloses itsworkflow_runtrigger and its own alert, now the build run's, and takes achecksinput. The lecture matrix starts only after a run onmain, since a branch's run moves nothing.:latestmoves a few minutes later after a merge, by the smoke test's run time. Everymain-*tag is kept as a rollback target. Thesedtag lists inbuild-containers.ymlare rewritten, so.github/actionlint.yamland its ignores for them go. (#142)
Fixed
preview-cloudflare:deploy-url, and with it the comment's preview URL and every lecture link, is built on the address Cloudflare serves the project at, which it keeps apart from the project's name and which can differ from<project-name>.pages.dev. The address comes from the deployment's own URL in wrangler's record of the deploy, thepages-deploy-detailedline it writes toWRANGLER_OUTPUT_FILE_PATH, so no other call is made, and the alias URL is still built, stable across pushes, as #14 made it.deployment-urlis read from the same record, in place of the first matching URL in wrangler's log. When the record gives no URL of the formhttps://<hash>.<name>.pages.dev, the step warns,deploy-urlfalls back to<project-name>.pages.devas before, anddeployment-urlis empty. When the address is not<project-name>.pages.dev, a notice says so: a comment posted withplaceholder: 'true'still links there, having no deploy to ask, until the deploy's comment replaces it (#216).
v0.16.0
Added
- CI: the harness gate lints this repository's own workflows with actionlint. Until now it linted only the templates and the manual's examples, so
.github/workflows/had never been linted. The first run found 11 problems, all shellcheck findings at style or info level, and none from actionlint's own rules. Four are fixed with rewrites that print the same output. Three aresedcalls that edit each line of a multi-line value, where SC2001's${var//}cannot apply, so each has a# shellcheck disablewith that reason. The other four are inbuild-containers.yml, which this change leaves alone because a merge that edits it rebuilds both images and moves:latest..github/actionlint.yamlignores them for that file only, until #142's phase 2 changes it. actionlint skipsrun:scripts when it finds no shellcheck, so the gate now fails if the runner image has none, and logs its version. TESTING.md and AGENTS.md give the same check to run locally. (#100) - CI: the harness gate shellchecks each action's
run:scripts, andscripts/*.sh, through a newscripts/lint-shell.py, since actionlint never reads anaction.yml. The script reads every*/action.ymlwith PyYAML, runs shellcheck at warning severity on eachrun:script whose shell is bash or sh, and reports each finding at its line in theaction.yml. It also fails on any${{ }}left in arun:script, an action's or a workflow's. #228 moved every one in the actions intoenv:, and the workflows had none, so AGENTS.md's rule now holds from here on. At warning severity it found nothing else: the 56run:scripts and the 9scripts/*.shpass with shellcheck 0.11.0. The two scripts undercontainers/are left out, since a change there rebuilds both images. (#100)
Changed
restore-jupyter-cache:cache-typeaccepts onlybuildorexecution, andsave-cacheandfail-on-missonly'true'or'false';pathmust not be empty. Anything else fails the run in its first step, on every call, a customkey's included, before anything is restored or registered for saving. The steps compared these values exactly, but their conditions compared them case-insensitively. Sosave-cache: 'True'registered the job-end save under the read-only key, which has no run ID: the first run saved under it, every later run matched it exactly and saved nothing, and the pull request's cache stopped updating without a word. A typo such ascache-type: execrestored the whole build cache, andfail-on-miss: yeswas false. An emptypathrestored the execution cache into/.jupyter_cache, and failed insideactions/cachefor the build cache. An unquotedtrueorTrueis unaffected, since YAML reads it as a boolean and the action receives'true'. No QuantEcon workflow passes a value outside these. Each input's description names its accepted values, and a new harness job,unit-input-values, shows each refused value failing the action where a control passes. It also makes #160'scache-type: executionsafer to adopt: a mistyped value can no longer bring the build cache back unnoticed. (#236)- Every action: an input that is one value fails the run in the action's first step if it holds a line break, and every input printed in an error or a warning is escaped. The runner reads each line a step prints that starts with
::as a workflow command, so an input such asenvironmentorbuild-dirwhose second line began with::issued that command when the action printed it, and a value such as50%25printed in an annotation showed as50%. Refused now: every input butbuild-lectures'extra-args, which is split on whitespace and is now printed with its line breaks as spaces;build-jupyter-cache'sbuilders,issue-labelsandissue-assignees, which are lists; and the tokens and IDs passed as secrets, which no action prints.deploy-cloudflarealready refused a line break in each of its inputs but the secrets, and its message forbuild-diris now the shared one. Both the check and the escaping arescripts/workflow-command.sh, which each step sources from$GITHUB_ACTION_PATH/../scripts/, in place of the copies inbuild-lectures,restore-jupyter-cache, both preview actions,scripts/preview-decide.shandscripts/detect-changed-lectures.sh. Every other value behaves as before, and no QuantEcon workflow passes a line break in any of these inputs. New harness jobs:workflow-command-helpertests the file, andinputs-line-breakshows each action failing in its first step on one. Copilot's review of #265 found the first case, insetup-environment. (#267)
Removed
⚠️ BREAKINGdeploy-cloudflare:require-accessis removed, andvisibilityis required, as the v0.14.0 and v0.15.0 deprecations said. Passingrequire-accessnow fails the job in its first step, with a message that says what to use instead, and so does leaving outvisibility, which used to check the site as private with a warning.require-access: 'false'was the only way to turn the checks off, and that goes with it: every deploy is checked before the upload, after the deploy and on the alias, as private or public. Thevisibilityoutput is set on every run whose inputs pass. To migrate: replacerequire-access: 'true', or neither input, withvisibility: private. Forrequire-access: 'false', usevisibility: publicand removeteam-domainif the site is public, orvisibility: privateif it is behind Access. The chapter's "Moving fromrequire-access" table gives each form. Two QuantEcon workflows call the action, both pinned to v0.12.0 and passing neither input, so each needsvisibility: privatewhen it moves to this release.dc-inputsshows both failures. (#177)
Documentation
- Developer docs (#178):
docs/devdescribes the project as it is.ARCHITECTURE.mdis the current design: the parts, and why the actions are composite, the environment an image, the caches keyed as they are, deploys kept in jobs of their own, installs pinned, inputs passed throughenv:, failures alerted and the manual generated. The pitch, the performance targets, the migration plan, the resolved questions and the success criteria are gone.TESTING.mdis how testing works now: the harness's gate and summary, its fixtures, what each action's jobs cover, the container checks, the canary, local checks, and what nothing covers. It said the preview actions andpublish-gh-pageshad no tests, which the harness'spreview-*,publish-release-packagingandpublish-modesjobs had made untrue.PLAN.mdkeeps the current state, consumers, open priorities, dependency policy, open issues and rollout, and drops the closed items and the history. A rootAGENTS.md, which Copilot code review and other agents read, replaces.github/copilot-instructions.md, pointing atdocs/devinstead of repeating it.CONTAINER-VALIDATION.mddescribes the lecture matrix as it runs, when, what it builds and how to read a run, without the February 2026 results. No container size is written into the docs any more: like the user manual, the dev docs point at eachTest Containerrun's size report (#201).tests/README.mdand CONTRIBUTING's doc-update table follow. (#192) - Getting started: the alert that told
@v0workflows to copy the templates from v0.14.0 is gone, now thatv0is on v0.15.0, which has themodeandplaceholderinputs the templates use. PLAN's release line says@v0is on v0.15.0. (#246)
Fixed
restore-jupyter-cache,build-lectures,build-jupyter-cache,publish-gh-pages,setup-environment: no action expands${{ }}into arun:script any more. Fifty-eight expressions in these five actions put an input, a step's output, ahashFiles()result or the run ID straight into the script text, where bash read a value as shell. Each now reaches the script throughenv:, quoted, and the run ID is$GITHUB_RUN_ID. Sorestore-jupyter-cachetakes apathholding a$as written:_build/$xused to restore into, and save from,_build/. It also refuses akeyorpaththat holds a line break, before writing either as a step output, where the line break would have started another output; itskeyandpathdescriptions say so.setup-environmentquotesenvironmentandenvironment-namewhere it runsconda env update. Every other value behaves exactly as before. New harness jobs:unit-custom-seedandunit-custom-restoresave and restore a customkeyinto apathholding a space and a$;unit-line-breakshows a line break in either failing the action; andbuild-html-copyrunshtml-copy-pdfandhtml-copy-notebooks, which no harness job turned on. ARCHITECTURE's rule on inputs now has no exceptions, PLAN drops backlog item 18, and TESTING lists the new jobs. (#228)build-lectures:html-copy-notebookscopies each notebook under_build/jupyterinto_build/html/_notebooks/at the same path. It copied them flat, but quantecon-book-theme links a page to/_notebooks/<page>.ipynbwith the page's directory in it, so a lecture in a subdirectory had a download link that led nowhere, and two lectures with the same name in different directories left one notebook between them. A top-level notebook lands where it did, and no QuantEcon book that copies its notebooks has a lecture in a subdirectory. A failed copy now fails the step, for the PDF too:find … -exec cp … \;ignored a failedcp, so the site was built without the download. The PDF copy stays flat, since the theme links the book's one PDF. Thehtml-copy-notebooksdescription and the chapter say so, and the chapter drops its caveat on lectures in subdirectories. The harness'sbuild-html-copyjob copies a secondlecture1.ipynbfrom a subdirectory, and shows a read-only destination failing each copy. (#217)build-jupyter-cache: the failure issue's commands to reproduce each failed build pass `--p...
v0.15.0
Added
⚠️ BREAKINGbuild-lectures: anerror-outputsinput,fail,warnorignore, and anerror-output-countoutput. After a build that passes, the action reads the notebooks myst-nb wrote to_build/jupyter_execute, outputs included, and reports everyerroroutput in them: an annotation on the source file, the traceback in a log group, and a table in the step summary.fail, the default (an empty value), then fails the step, andwarnpasses it.-Wmisses these tracebacks when the exception is raised while IPython displays output, such as a figure that fails to draw: the kernel reports the cell as successful, nbclient does not raise, and myst-nb renders the traceback without a warning. Sojb buildexits 0 and the page is published with the traceback on it, as the Black–Litterman lecture on python-advanced.quantecon.org was from August until its fix in November. ipykernel 7.3.0 fails a cell whose last value cannot be displayed, but output shown throughdisplay(), which is how a figure reaches the page, still passes. Errors are allowed where nbclient and myst-nb allow a cell to raise: a cell taggedraises-exception, a notebook whosemystnbmetadata setsexecution_allow_errors, and a book whose_config.ymlsetsexecute.allow_errors. Notebooks with no source undersource-dir, which a restored build cache can carry, are skipped.build-jupyter-cachegets the sameerror-outputsinput and passes it to each build. The new harness jobbuild-display-error-guardstages a display-time error and araises-exceptioncontrol, and builds under each value. A site whose pages carry such a traceback now fails its build: fix the cell, tag a deliberate oneraises-exception, or seterror-outputs: 'warn'while it does. (#247)publish-gh-pages: amodeinput, so the upload, the deploy and the release assets can each run in a job of their own, and only the job that deploys holds the Pages permissions (finding M1 of the 2026-10-06 review). The action used to upload, deploy and release in one composite step, so a caller had to grantpages: writeandid-token: writeto the job that executed the notebooks.all, the default, is that behaviour, unchanged.uploaduploadsbuild-diras the run'sgithub-pagesartifact and needs only read access.deploydeploys that artifact, from a later job of the same run, withpages: writeandid-token: write, and takes nobuild-dirorcname.releasemakes the release assets frombuild-dir, in a job withcontents: write, on a tag as before.build-diris no longer a required input, sincedeploytakes none. The action checks its inputs first, and fails before anything is uploaded on an unknown mode, a missingbuild-dir,build-dirorcnamewithdeploy,create-release-assets: 'true'withuploadordeploy, or anasset-namewith a character other than a letter, digit,.,_or-. A name with a backslash gave a checksum file thatsha256sum --checkrejects; the eight consumers that make release assets all use names inside that set. A newmodeoutput gives the mode, and is empty when the inputs were refused. The release assets are unchanged, except that the manifest's strings are now escaped, so a tag with a", which git allows, gives valid JSON, where it used to give a manifest no parser could read. Their packing moved intoscripts/package-release-assets.sh, which the action runs. In CI, as decision 5 on #143 asks,publish-release-packagingruns that script with a stand-in tag and checks each part of the manual's contract: the file names, an archive of the whole site with./paths and hidden files, a checksum thatsha256sum --checkaccepts, and a manifest with exactly the documented fields and types.publish-modesruns the action withcontents: readalone. It asserts thatuploaduploads the site, thatreleaseskips off a tag, and that each refused combination fails with an emptymode, before anything is uploaded. A real deploy and a release upload are the staged canary's to prove. (#233)preview-netlify,preview-cloudflare,templates/ci.yml: aplaceholderinput, which posts the pull request's preview comment within seconds of a push, before the build has finished, and aplaceholderjob inci.ymlthat runs it (#153). Until now the comment came only after a successful deploy, minutes later. Withplaceholder: 'true'the action decides as for a deploy, so a fork's or Dependabot's pull request gets nothing, then installs and deploys nothing. It builds the preview URL from the pull request's number, from a newnetlify-site-nameinput onpreview-netlifyand fromproject-nameonpreview-cloudflare, and reads the changed lectures from the API's list of the pull request's files, by change detection's rules, so its job needs no checkout, no container and no secret. The comment is headed "⏳ … Preview Building", says that its links show the last push deployed until this one's deploy finishes, and carries the same hidden marker, so the deploy's comment replaces it in place; the placeholder never replaces the deploy's comment for its own commit. The token, the site or account ID andbuild-dirare now required for a deploy only: a run that would deploy without one fails at a new input check, before anything is installed, with an error naming it. A step that passes them, as every caller does, deploys as before. Thepreview-commentharness job now runs that check for 20 cases, and the placeholder's comment against the API stand-in, andpreview-wiringruns a deploy without its token orbuild-dir, and invalid placeholder inputs, through each action.
Changed
preview-cloudflare,deploy-cloudflare: the pinned wrangler moves from 4.156.0 to 4.156.1, through Dependabot's lockfile bump. The harness installs it from both lockfiles and runs it. (#259)templates/publish.yml: builds and deploys in separate jobs, asci.ymldoes since #232.buildbuilds in the container withcontents: readand ends withpublish-gh-pagesmode: upload.deployneedsbuild, runs onubuntu-latestwith no checkout or container, holds onlypages: writeandid-token: write, and runsmode: deployin thegithub-pagesenvironment. The optional release assets move to a commentedrelease-assetsjob withcontents: write, which runsmode: releaseon a tag once the deploy has succeeded. It takes the site from anhtmlartifact that a commented step inbuilduploads before the Pages upload, hidden files included, so the archive holds what it did. The template needs the release that addsmode: an earlier@v0ignores the input, and both jobs fail. (#233)templates/ci.yml,templates/cache.yml,templates/publish.yml: the pull request preview is deployed from a job that runs no notebook code, and no template leaves the job's token in git's config for later steps (finding M1 of the 2026-10-06 review). Building the lectures runs code the repository does not fully control, and it used to share a job with the step that hands the Netlify or Cloudflare token to the deploy CLI.ci.ymlnow has three jobs.build(renamed frompreview) builds in the container withcontents: readand no secrets, and uploads_build/htmlas thehtmlartifact, hidden files included.deployneedsbuild, has no container, holds the provider secrets andpull-requests: write, sets up Node 24 and runs only the preview action on the downloaded site.pdf-checknow needsbuildtoo, so it runs beside the deploy rather than after it. Every checkout in the three templates setspersist-credentials: false. Change detection indeployfetches the history it needs from GitHub with no credentials, which a public repository allows; a private repository setsfetch-depth: 0ondeploy's checkout, as its comment says. A site that copies the newci.ymland makes the old job a required status check must requirebuildin place ofpreview: no job is calledpreviewany more, so until it does its pull requests wait for a check that never reports.pdf-checkanddeployare both skipped whenbuildfails, so either needsbuildrequired beside it. Two harness jobs,preview-site-handoffandpreview-deploy-job, run the hand-off: the site must arrive whole, hidden files included, and from a shallow checkout with no stored credentials, change detection must list the files GitHub lists for the pull request. (#232)- Container images: the Ubuntu base is pinned by digest, and nothing rebuilds the images on a schedule any more, as decided on #234. Until now
build-containers.ymlrebuilt both images every Monday. Whenubuntu:24.04had not moved, BuildKit replayed every layer from the cache and republished the same image (four of the seven Mondays from 2026-08-24 to 2026-10-05), while the READMEs,docs/CONTAINER-GUIDE.mdanddocs/dev/ARCHITECTURE.mdpromised weekly security updates. When it had moved, the images' floating packages re-resolved with no pull request, which is how plotly 7 reached the lean image (#222). Both Dockerfiles now pinubuntu:24.04@sha256:fe81560…, the digest the current:latestimages were built on, so the pin changes neither image. Dependabot proposes each new 24.04 digest as one pull request for both images, which builds and smoke-tests them before:latestmoves, and ignores 26.04 and any other release. OS updates therefore arrive whenever Canonical republishes the base, every few weeks, reviewed. Those docs andCONTRIBUTING.mdnow say so, and point to #129 for what the pin does not make reproducible. On every harness run,validate-containers.ymlchecks that each image pins its base by digest and that both pin the same one (scripts/check-base-pins.sh). The lecture matrix,test-containers-lectures.yml, which the weekly build used to trigger, now runs weekly on a schedule of its own against:latest(Monday 02:...