Skip to content

Commit 0e11f80

Browse files
committed
ENH: Consider warnings as errors when running pytest
Consider warnings as errors when running `pytest`: exclude the `min` dependencies configuration as warnings are expected with older versions.
1 parent a6bcd48 commit 0e11f80

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/build_test_deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ env:
3131
# Force tox and pytest to use color
3232
FORCE_COLOR: true
3333
TEMPLATEFLOW_HOME: /tmp/templateflow
34+
NIFREEZE_WERRORS: 1
3435

3536
jobs:
3637
build:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ uv_resolution =
6767
min: lowest-direct
6868

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

7272
[testenv:style]
7373
description = Check our style guide

0 commit comments

Comments
 (0)