-
Notifications
You must be signed in to change notification settings - Fork 10
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
Do continuous integration and codecoverage as in reduceSPI / ioSPI #6
Conversation
…ing for because it is on the same level as tests. I checked with ioSPI and put src
… length in docstrings, while black ignores these
…t for merge into master
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.
LGTM if tests pass!
.github/workflows/build.yml
Outdated
$CONDA/bin/pytest --cov-report term --cov-report xml:coverage.xml --cov=ioSPI ${{matrix.test-folder}} |
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.
replace to simSPI
…ction and use this fast version in other functions
Codecov Report
@@ Coverage Diff @@
## master #6 +/- ##
=========================================
Coverage ? 95.84%
=========================================
Files ? 3
Lines ? 72
Branches ? 0
=========================================
Hits ? 69
Misses ? 3
Partials ? 0 Continue to review full report at Codecov.
|
The tests were failing because of low test coverage. For some reasons using a numba.jit decorator, and then testing this function, doesn't count for code coverage. Instead, I defined the function (to be jitted) without a decorator, then make a numba.jitted version of it and called it a different name. The slow plain vanilla function is used in the tests. The fast jitted function is used in other functions |
I really don't understand how or why the tests passed in Python 3.7 and 3.8, but not 3.9. There is a shape mis match, but the shapes should be even
|
well it passed the tests for 3.7,3.8,3.9. Maybe some issue with the way the integer is rounded to even??? https://github.com/geoffwoollard/simSPI/blob/ci/tests/test_multislice.py#L92 |
Like this PR for ioSPI, but with simSPI https://github.com/compSPI/ioSPI/pulls?q=is%3Apr+is%3Aclosed