Skip to content
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

ci: added minimal testing setup with coverage #88

Merged
merged 2 commits into from
May 20, 2021

Conversation

ErikBjare
Copy link
Collaborator

@ErikBjare ErikBjare commented Mar 24, 2021

fixes #77

This simply runs all the examples with pytest + pytest-cov (for coverage) + nbval (for .ipynb files).

All the *.py files in the example folder are ignored since I'm not sure how to deal with the test collection when the entire file is the test (and may do things that require interaction).

Since most of the notebooks seem to not run correctly I think it might make sense to try and figure out how to run the auto_examples as tests, but I can't figure out a way for pytest to treat each file like a test without running it at collection-time...

@ErikBjare ErikBjare marked this pull request as draft March 24, 2021 11:54
@ErikBjare ErikBjare changed the title ci: added minimal testing setup ci: added minimal testing setup with coverage Mar 24, 2021
@ErikBjare
Copy link
Collaborator Author

I realized I've implemented similar changes in #93, where examples aren't run in CI, so it passes.

Should probably prefer that PR over this one.

@ErikBjare ErikBjare marked this pull request as ready for review May 20, 2021 15:14
@ErikBjare ErikBjare merged commit 758f58d into NeuroTechX:master May 20, 2021
@ErikBjare ErikBjare deleted the dev/tests branch May 20, 2021 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add code coverage analysis
1 participant