Skip to content

Commit

Permalink
[CI] Fix running examples by ignoring warnings
Browse files Browse the repository at this point in the history
Matplotlib 3.6.0 introduced a new incidental warning which has nothing
to do with our code. This change ignores that warning so other warnings
can still be caught.
  • Loading branch information
bryanwweber authored and speth committed Sep 29, 2022
1 parent 488bd1a commit 7684653
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -309,7 +309,8 @@ jobs:
-exec sh -c 'for n; do echo "$n" | tee -a results.txt && python3 "$n" >> results.txt || exit 1; done' sh {} +
env:
PYTHONPATH: build/python
PYTHONWARNINGS: error
# The ignore setting here is due to a new warning introduced in Matplotlib==3.6.0
PYTHONWARNINGS: "error,ignore:warn_name_set_on_empty_Forward::pyparsing"
MPLBACKEND: Agg
- name: Save the results file for inspection
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 7684653

Please sign in to comment.