Skip to content

CI hardening: strict builds, conda dependabot, missing figure (succeeds #97)#166

Merged
mmcky merged 3 commits into
mainfrom
phase0/ci-hardening
Jul 18, 2026
Merged

CI hardening: strict builds, conda dependabot, missing figure (succeeds #97)#166
mmcky merged 3 commits into
mainfrom
phase0/ci-hardening

Conversation

@mmcky

@mmcky mmcky commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

The curated successor to #97, per Matt: everything that PR carried which #165 didn't supersede.

Included: -n -W --keep-going on the three build workflows (the English source repos' strict-build convention — this is what would have caught the five missing-import execution bugs the wave sweep just fixed by hand); a conda dependabot ecosystem entry (jupyter-book held <2.0, python constrained by anaconda); wald_dec_rule.png copied from the source (referenced by wald_friedman_2, missing here — warning today, error under -W).

Dropped as obsolete: #97's lecture-code fixes — back_prop's jax API and house_auction's identifier were regenerated correctly by the resync wave; the five missing import matplotlib as mpl bugs were fixed directly on their wave branches today; the ogm.py tweak targets optgrowth_fast, removed in #99.

Note: this PR's own CI is the strictness test — if current content produces any warning under -W, this build goes red and names it, which is the point. Merge after the wave lands, or before with the knowledge that wave PRs then must be warning-clean too. #97 can be closed once this is in.

🤖 Generated with Claude Code

Carries forward the pieces of #97 that #165 did not supersede:

- jb build gains '-n -W --keep-going' in cache/ci/publish workflows,
  matching the English source repos' strict-build convention
- dependabot watches the conda ecosystem (jupyter-book pinned <2.0,
  python constrained by the anaconda distribution)
- wald_dec_rule.png copied from the source repo (referenced by
  wald_friedman_2 but absent here - a warning today, an error under -W)

Dropped from #97 as obsolete: the lecture-code fixes (regenerated by the
Track B resync wave or applied directly to its branches) and the ogm.py
tweak (optgrowth_fast was removed in #99).

Part of Phase 0 Track B, QuantEcon/lecture-python.myst#947.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 18, 2026 10:32
@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit e65bf48
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6a5c097ac79fba0008140194
😎 Deploy Preview https://deploy-preview-166--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Hardens the documentation build CI for lecture-python.zh-cn by enabling “strict build” behavior (treat warnings as errors, nitpicky mode, keep going) across the main build workflows and adding Dependabot coverage for the conda environment to keep build dependencies current and controlled.

Changes:

  • Add -n -W --keep-going to jb build lectures in CI, cache, and publish workflows to fail builds on warnings while still reporting multiple issues.
  • Add a Dependabot conda ecosystem entry at repo root with ignores for jupyter-book >= 2.0 and all python updates (leaving Python pinned by the Anaconda distribution).

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
.github/workflows/publish.yml Enables strict JupyterBook/Sphinx build flags for publish builds.
.github/workflows/ci.yml Enables strict build flags for the primary CI workflow.
.github/workflows/cache.yml Enables strict build flags for the cache rebuild workflow.
.github/dependabot.yml Adds conda Dependabot updates with targeted ignore rules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mmcky and others added 2 commits July 18, 2026 20:52
…fiscal ref

mix_model kept a CJK font-config block without the mpl import it needs
(same class as the five wave-branch fixes; mix_model was skipped by the
wave so the pre-existing bug stayed on main). cass_fiscal's note pointed
{doc} at a document that never existed; replaced with the wave branch's
exact {ref}`growth_model` sentence so the resync PR merges cleanly over
it. newton_method's two iref_ambiguous warnings are NOT patched here:
old main lacks the local anchors, and the resync PR (#140) adds them -
merging #140 resolves those warnings without conflict-prone edits.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request July 18, 2026 23:35 Inactive
@mmcky
mmcky merged commit 3e44312 into main Jul 18, 2026
7 checks passed
@mmcky
mmcky deleted the phase0/ci-hardening branch July 18, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants