Skip to content

Commit 4724be4

Browse files
authored
Merge 17ecb23 into 2ea0317
2 parents 2ea0317 + 17ecb23 commit 4724be4

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
jobs:
66
preview:
77
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=quantecon_ubuntu2404/disk=large"
8+
permissions:
9+
issues: write
10+
pull-requests: write
811
steps:
912
- uses: actions/checkout@v4
1013
with:
@@ -72,6 +75,14 @@ jobs:
7275
shell: bash -l {0}
7376
run: |
7477
jb build lectures --path-output ./ -n -W --keep-going
78+
- name: Check for Python warnings
79+
uses: QuantEcon/meta/.github/actions/check-warnings@copilot/fix-175
80+
with:
81+
html-path: './_build/html'
82+
warnings: 'SyntaxWarning,DeprecationWarning,FutureWarning'
83+
fail-on-warning: 'false'
84+
create-issue: 'true'
85+
issue-title: 'Python warnings found in code output'
7586
- name: Upload Execution Reports (HTML)
7687
uses: actions/upload-artifact@v4
7788
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)