-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add coverage config #253
base: main
Are you sure you want to change the base?
Add coverage config #253
Conversation
Hmmm, |
You'll need to add Line 78 in 94e8390
|
@@ -116,6 +121,7 @@ filterwarnings = [ | |||
'ignore:.*datetime.datetime.utcfromtimestamp\(\):DeprecationWarning', | |||
'ignore:(?s).*Pyarrow:DeprecationWarning', | |||
] | |||
addopts = "--cov" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From looking at lost of tracebacks on CIs and locally I'd recommend a couple more options we have in MNE-Python
addopts = "--cov" | |
addopts = "--cov=sleepecg -rfEXs --cov-report= --tb=short" |
some of which could then be removed from
- run: pytest -rfEXs --cov=sleepecg --cov-report=xml --tb=short --cov-branch --color=yes $PYTEST_EXTRA tests/ |
Move
.coveragerc
topyproject.toml
and try to automatically run it withpytest
.