Skip to content

Commit 4cfb35f

Browse files
authored
Merge 02e9052 into 2ea0317
2 parents 2ea0317 + 02e9052 commit 4cfb35f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
jobs:
66
preview:
77
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=quantecon_ubuntu2404/disk=large"
8+
permissions:
9+
contents: read # For checking out the repository
10+
issues: write # For creating GitHub issues (if create-issue is enabled)
11+
actions: read # For creating workflow artifacts (if create-artifact is enabled)
812
steps:
913
- uses: actions/checkout@v4
1014
with:
@@ -72,6 +76,16 @@ jobs:
7276
shell: bash -l {0}
7377
run: |
7478
jb build lectures --path-output ./ -n -W --keep-going
79+
- name: Check for Python warnings
80+
uses: QuantEcon/meta/.github/actions/check-warnings@copilot/fix-175
81+
with:
82+
html-path: './_build/html'
83+
warnings: 'SyntaxWarning,DeprecationWarning,FutureWarning'
84+
fail-on-warning: 'false'
85+
create-issue: 'true'
86+
issue-title: 'Python Warnings Found in Code Output'
87+
create-artifact: 'true'
88+
artifact-name: 'python-warning-report'
7589
- name: Upload Execution Reports (HTML)
7690
uses: actions/upload-artifact@v4
7791
if: failure()

lectures/aiyagari.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ In addition to what's in Anaconda, this lecture will need the following librarie
3434
!pip install quantecon
3535
```
3636

37+
```{code-cell} ipython3
38+
import warnings
39+
warnings.warn(
40+
"This function will be deprecated in a future version. ",
41+
FutureWarning
42+
)
43+
```
44+
3745
## Overview
3846

3947
In this lecture, we describe the structure of a class of models that build on work by Truman Bewley {cite}`Bewley1977`.

0 commit comments

Comments
 (0)