diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18a2cdae..f4c5cda8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,6 +64,13 @@ jobs: with: name: execution-reports path: _build/html/reports + - name: Check for Python warnings (PR mode = changed files) + if: github.event_name == 'pull_request' + uses: QuantEcon/meta/.github/actions/check-warnings@copilot/fix-224 + with: + html-path: './_build/html' + pr-mode: 'true' + fail-on-warning: 'true' - name: Preview Deploy to Netlify uses: nwtgck/actions-netlify@v3 with: diff --git a/lectures/about_py.md b/lectures/about_py.md index 4f9c883c..db22cc0f 100644 --- a/lectures/about_py.md +++ b/lectures/about_py.md @@ -29,6 +29,11 @@ anymore. Sorry, R people. I used to be one of you but we no longer descend into R." -- Chris Wiggins ``` +```{code-cell} python3 +import warnings +warnings.warn("Forced Syntax Warning for Debug.", SyntaxWarning) +``` + ## Overview This lecture series will teach you to use Python for scientific computing, with