-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Consider warnings as errors when running
pytest
Consider warnings as errors when running `pytest`: - Add the `warnings-as-errors` flag to `pytest` to consider warnings as errors. - Use an environment variable `NIFREEZE_WERRORS` in GHA workflow files to mark the corresponding workflows as treating warnings as errors. - Process the `pytest` session end to mark it as failed if warnings were present. Implementation drawn from DIPY. Filter two warnings that are being raised by the current tests: - Filter warnings related to GPR parameter optimal values being close to the boundary values raised by `scikit-learn`. - Filter warnings related to the b0 threshold value being updated in gradient table slicing raised by DIPY.
- Loading branch information
1 parent
6b6ba70
commit 57398b0
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters