Skip to content

Commit 0734b8b

Browse files
committed
[CI] Ignore warnings from dependencies while running Python examples
1 parent 1b7bb35 commit 0734b8b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ jobs:
700700
# See https://unix.stackexchange.com/a/392973 for an explanation of the -exec part.
701701
# Skip 1D_packed_bed.py due to difficulty installing scikits.odes.
702702
# Increase figure limit to handle flame_speed_convergence_analysis.py.
703-
# Skip examples for Python releases where pandas/pyarrow or CoolProp are not available
703+
# Skip examples for Python releases where pandas/pyarrow or CoolProp are not available.
704704
run: |
705705
echo "Running on `cat /proc/cpuinfo | grep 'model name' | head -n 1 | cut -d ':' -f 2`"
706706
ln -s libcantera_shared.so build/lib/libcantera_shared.so.3
@@ -725,9 +725,9 @@ jobs:
725725
find samples/python -type f -iname "*.py" \
726726
-exec sh -c 'for n; do echo "$n" | tee -a results.txt && python3 "$n" >> results.txt || exit 1; done' sh {} +
727727
env:
728-
# The pyparsing ignore setting is due to a new warning introduced in Matplotlib==3.6.0
729-
# Ignore NasaPoly2 warnings from n-hexane-NUIG-2015.yaml
730-
PYTHONWARNINGS: "error,ignore:warn_name_set_on_empty_Forward::pyparsing,ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:,ignore:NasaPoly2:UserWarning:"
728+
# Fail on warnings attributed to direct example usage while ignoring
729+
# transitive dependency warnings.
730+
PYTHONWARNINGS: "ignore,error:::__main__"
731731
MPLBACKEND: Agg
732732
- name: Save the results file for inspection
733733
uses: actions/upload-artifact@v5

0 commit comments

Comments
 (0)