Skip to content

Commit

Permalink
CI: Move --mpl to default pytest args in run-tests
Browse files Browse the repository at this point in the history
This eliminates the pytest-mpl piece being a mandatory part of the
action.
  • Loading branch information
dopplershift committed Oct 31, 2024
1 parent 29f28d4 commit cfbde55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
pytest-args:
description: 'Additional arguments to pass to pytest'
required: false
default: '-W error::metpy.deprecation.MetpyDeprecationWarning'
default: '--mpl -W error::metpy.deprecation.MetpyDeprecationWarning'
runs:
using: composite
steps:
Expand All @@ -30,7 +30,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 ${{ inputs.pytest-args }} tests/ 2>&1 | tee tests-${{ inputs.key }}.log
python -m coverage run -p -m pytest ${{ inputs.pytest-args }} 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 cfbde55

Please sign in to comment.