From cf523485bd065085efb7450c2668034882f81a16 Mon Sep 17 00:00:00 2001 From: Ryan May Date: Fri, 3 Nov 2023 16:16:33 -0600 Subject: [PATCH] CI: Set pytest to run with all warnings as errors 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. --- .github/actions/run-tests/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index 88c831fb77b..8c9e63c4caa 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -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