-
Notifications
You must be signed in to change notification settings - Fork 439
ci: switch from coveralls to codecov for coverage reporting #2144
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,10 +2,12 @@ on: [push, pull_request] | |
|
|
||
| name: Code Coverage | ||
|
|
||
| permissions: {} | ||
| permissions: | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| Codecov: | ||
| Coverage: | ||
| name: Code Coverage | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
|
|
@@ -30,10 +32,14 @@ jobs: | |
| run: cargo llvm-cov -q --doctests --branch --all --ignore-filename-regex "(example*|crates/testenv/*)" --all-features --lcov --output-path ./coverage/lcov.info | ||
| - name: Generate HTML coverage report | ||
| run: genhtml -o coverage-report.html --ignore-errors unmapped ./coverage/lcov.info | ||
| - name: Coveralls upload | ||
| uses: coverallsapp/github-action@master | ||
| - name: Codecov upload | ||
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| files: ./coverage/lcov.info | ||
| flags: rust | ||
| name: codecov-bdk | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| fail_ci_if_error: false | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't the pipeline fail if error?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question, I don't think we need to fail, and we don't fail for the
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @notmandatory @Toyin5 Thanks for the review, Should I update this to fail, or leave it as it is? |
||
| - name: Upload artifact | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
|
|
||
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.
can't we build it with
cargo llvm-covinstead, as it's being done in bdk_wallet.