Skip to content

Commit

Permalink
ENH: Consider warnings as errors when running pytest
Browse files Browse the repository at this point in the history
Consider warnings as errors when running `pytest`: exclude the `min`
dependencies configuration as warnings are expected with older versions.
  • Loading branch information
jhlegarreta committed Jan 10, 2025
1 parent a6bcd48 commit 0e11f80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ env:
# Force tox and pytest to use color
FORCE_COLOR: true
TEMPLATEFLOW_HOME: /tmp/templateflow
NIFREEZE_WERRORS: 1

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ uv_resolution =
min: lowest-direct

commands =
pytest --durations=20 --durations-min=1.0 --cov-report term-missing {posargs:-n auto}
pytest --durations=20 --durations-min=1.0 --cov-report term-missing !min: -Werror {posargs:-n auto}

[testenv:style]
description = Check our style guide
Expand Down

0 comments on commit 0e11f80

Please sign in to comment.