Showing coverage info on GitHub repos? #142
Replies: 8 comments 1 reply
-
tagging the WG, not sure everyone gets notifications otherwise: @OCNS/software-wg |
Beta Was this translation helpful? Give feedback.
-
For https://github.com/brian-team/brian2, we use https://coveralls.io (see https://github.com/brian-team/brian2/blob/master/.github/workflows/testsuite.yml) – I think instead of installing/using the separate |
Beta Was this translation helpful? Give feedback.
-
GeNN uses codecov.io https://github.com/genn-team/genn to generate combined C++ and Python coverage (e.g. https://app.codecov.io/github/genn-team/genn?branch=master). We use pytest-cov for the Python bit |
Beta Was this translation helpful? Give feedback.
-
Cool. We have pytest-cov too, but I don't think we've configured it correctly to run on our CI. BTW, are both coveralls and codecov free for public/open projects (or did you have to pay to use them)? |
Beta Was this translation helpful? Give feedback.
-
As is codecov.io - no idea of the pros and cons between them! Our CI is a bit of a Jenkins mess at the moment but it uploads using the bash up loader like https://github.com/genn-team/genn/blob/80dd174f5133ce0c9287cfdc1b2de46eb340b4e0/Jenkinsfile#L248 |
Beta Was this translation helpful? Give feedback.
-
Thanks. I had a quick look at some comparison posts etc. Not a lot between them from the look of it. Also ran into https://www.codacy.com/pricing I'll go set one up, thanks both :) |
Beta Was this translation helpful? Give feedback.
-
I set it up now. Here's a PR: It doesn't use coveralls/codecov/codacy. There are two github actions that:
Seems to work well enough (and shows that some of our legacy code could use more testing to improve coverage..) |
Beta Was this translation helpful? Give feedback.
-
This is the action: https://github.com/marketplace/actions/code-coverage-summary also has an example with the commenting bit |
Beta Was this translation helpful? Give feedback.
-
Hi folks,
What setup/config/services are you folks using to get/show converage information on your GitHub repos? I wanted to enable it on our NeuroML repos, especially the Python bits where we use pytest for testing.
I see lots of posts on doing this, but if you have a working setup already, I'll just adapt (cough steal cough) that :)
Beta Was this translation helpful? Give feedback.
All reactions