ci: add code coverage workflow#45
Conversation
|
I just saw the issue linked to an older bdk |
a240bdb to
c614e29
Compare
|
Thank you @noahjoeris just noting that I think there are plans to switch to codecov-action for uploading coverage reports using BDK's |
c614e29 to
43f5537
Compare
|
Changed it to codecov. You might still need to set the codecov token tho :) |
|
The token exists at the org level but maybe not activated for this repo yet. While I look into it here's some additional notes
|
43f5537 to
bfee893
Compare
|
Good points thx. I updated. |
|
Ah I think merging to master is all that's needed for codecov.io. |
|
Can we add this? ValuedMammal@8d2ea5b |
bfee893 to
effacf2
Compare
effacf2 to
cb52b8c
Compare
|
Cool, I added it. Seems to work and exclude unit tests. Though I get this warn. cargo llvm-cov compiles the crate twice, once as the library (no cfg(test)), once as the test binary. In the library pass, #[cfg(test)] mod tests is stripped before attribute checking, so rustc never sees #[coverage(off)] being used and flags the feature as unused. In the test pass it's seen and works as intended. We probably don't want to just silence it with: |
I tried to reproduce the warning in |
Description
This PR adds CI code coverage workflow. I tried to be as close to the bdk flow as possible. Adapted minor things to this repo.
Closes #8