Skip to content

Commit

Permalink
CI: Set pytest to run with all warnings as errors
Browse files Browse the repository at this point in the history
This was more problematic in the past since new versions could randomly
cause failures. In our world with Dependabot, these can be handled in a
much more orderly fashion.
  • Loading branch information
dopplershift committed Nov 3, 2023
1 parent 72379ff commit cf52348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
# By running coverage in "parallel" mode and "combining", we can clean up the path names
run: |
set -e -o pipefail
python -m coverage run -p -m pytest --mpl -W error::metpy.deprecation.MetpyDeprecationWarning tests/ 2>&1 | tee tests-${{ inputs.key }}.log
python -m coverage run -p -m pytest --mpl -Werror -W error::metpy.deprecation.MetpyDeprecationWarning tests/ 2>&1 | tee tests-${{ inputs.key }}.log
python -m coverage combine
python -m coverage report
python -m coverage xml
Expand Down

0 comments on commit cf52348

Please sign in to comment.