-
Notifications
You must be signed in to change notification settings - Fork 12
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 code coverage to CI #16
Conversation
Also was there any other integrations we were using? PEP8speaks bot? |
yes, I forgot to update the import in |
I think the only extra integration we had was pep8speaks, although I'm not quite sure how much value this has: Also, while we're at it: do you think we can investigate the actions integration of pipelines? Right now, only a single CI action is visible (see also #11 (comment)) |
Okay great, thanks.
It's kind of nice that it comments on the PR says what was wrong with the code, but I agree it's not really adding that much.
You mean how it just says "xarray-contrib.pint-xarray" instead of listing each test individually? I'm not sure how to change that but I'll have a look. |
me neither. Let's ping @shoyer since he seems to have been the one to set this up for |
I found this SO question but it doesn't actually tell you how to split them up. Code Coverage! We should add that too - I'll try and do it now. |
I'm not sure why Azure looks different here than for xarray. I don't think that's anything I explicitly set. There might be an option hidden somewhere in the Azure Pipelines settings? |
Codecov Report
@@ Coverage Diff @@
## master #16 +/- ##
=========================================
Coverage ? 82.41%
=========================================
Files ? 7
Lines ? 614
Branches ? 0
=========================================
Hits ? 506
Misses ? 108
Partials ? 0 Continue to review full report at Codecov.
|
I had a look in the settings but couldn't see anything. I've emailed to commenter on that stack overflow comment who said he works at Azure because why not. Also @shoyer these Azure pipelines are currently just set up on an account in my name, given access to this repo. Is that the way I'm supposed to be doing it? Can I give other people access too? @keewis I think I've got codecov working now so if you want to merge this into master we should then have coverage stats. |
Looks good to me, but before I merge: what's the difference between both coverage checks? |
@@ -31,10 +31,15 @@ jobs: | |||
displayName: 'Install dependencies' | |||
|
|||
- script: | | |||
pip install pytest pytest-azurepipelines | |||
pytest --verbose | |||
pip install pytest pytest-azurepipelines pytest-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.
would it make sense to add these and all of the linters to requirements.txt
? Or should we rather maintain a separate CI requirements file?
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.
Let's do that in a separate PR.
since this is about CI in general: let me know if anyone wants to become a maintainer on RTD |
I still don't understand the difference between two coverage checks, but let's merge for now. |
@keewis pointed out that after moving to xarray-contrib we seem to have lost the CI. I've re-created the Azure pipeline that's supposed to run the CI tests (including pytest and black), which I have been able to re-run on master. I want to check it's working on new PRs.