Skip to content

Commit 3e44312

Browse files
mmckyclaude
andauthored
CI hardening: strict builds, conda dependabot, missing figure (succeeds #97) (#166)
* CI hardening: strict builds, conda dependabot, missing wald_dec_rule.png 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> * Fix the two main-content strict-build breaks: mix_model import, cass_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> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 8b4c90b commit 3e44312

7 files changed

Lines changed: 18 additions & 4 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@ updates:
1111
prefix: ⬆️
1212
schedule:
1313
interval: weekly
14+
15+
- package-ecosystem: "conda"
16+
directory: "/"
17+
commit-message:
18+
prefix: ⬆️
19+
schedule:
20+
interval: weekly
21+
ignore:
22+
- dependency-name: "jupyter-book"
23+
versions: [">=2.0"]
24+
- dependency-name: "python"
25+
# Python version should be constrained by the anaconda distribution version
26+
versions: [">0"]

.github/workflows/cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Build HTML
4040
shell: bash -l {0}
4141
run: |
42-
jb build lectures --path-output ./ --keep-going
42+
jb build lectures --path-output ./ -n -W --keep-going
4343
- name: Upload Execution Reports (HTML)
4444
uses: actions/upload-artifact@v4
4545
if: failure()

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
- name: Build HTML
7474
shell: bash -l {0}
7575
run: |
76-
jb build lectures --path-output ./ --keep-going
76+
jb build lectures --path-output ./ -n -W --keep-going
7777
- name: Upload Execution Reports (HTML)
7878
uses: actions/upload-artifact@v4
7979
if: failure()

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
- name: Build HTML
7474
shell: bash -l {0}
7575
run: |
76-
jb build lectures --path-output ./
76+
jb build lectures --path-output ./ -n -W --keep-going
7777
# Create HTML archive for release assets
7878
- name: Create HTML archive
7979
shell: bash -l {0}
25.1 KB
Loading

lectures/cass_fiscal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ mp.pretty = True
287287
我们使用`mpmath`库在射击算法中执行高精度运算,以防止由于数值不稳定而导致解发散。
288288
289289
```{note}
290-
在下面的函数中,我们包含了一些处理增长成分的例程(将在{doc}`Exogenous growth` 一节中进一步讨论
290+
在下面的函数中,我们包含了一些处理增长成分的例程,这部分内容将在{ref}`growth_model`一节中进一步讨论。
291291
292292
我们在这里提前加入这些代码是为了避免代码重复。
293293
```

lectures/mix_model.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ $$
117117
118118
import matplotlib.pyplot as plt
119119
FONTPATH = "fonts/SourceHanSerifSC-SemiBold.otf"
120+
import matplotlib as mpl
120121
mpl.font_manager.fontManager.addfont(FONTPATH)
121122
plt.rcParams['font.family'] = ['Source Han Serif SC']
122123

0 commit comments

Comments
 (0)