-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: Added CI test for code coverages #1700
base: main
Are you sure you want to change the base?
Conversation
Reference to this issue: juspay#1593
.github/workflows/code_coverage.yml
Outdated
- name: Set up Rust | ||
uses: actions/setup-rust@v1 | ||
|
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.
we use dtolnay/rust-toolchain@master
for the rest of our actions,
Can we use that here as well...
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.
Sure, Let me update that
.github/workflows/code_coverage.yml
Outdated
- name: Publish code coverage comment on PR | ||
uses: mikepenz/action-github-comment@v2 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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.
I believe you need to grant the proper permissions at the start of the workflow.
Also can you add a https://app.codecov.io/gh integration here for CI checks,
(you can test this out on your forked repo since it's free to use)
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 you able to elobrate more about permission one again?
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.
I was referring to this
will need to give write permissions on the PR so that it's able to add a comment
permissions:
pull-requests: write
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.
Done this part
Added dtolnay/rust-toolchain@master
Any Updates @lsampras ? |
Hey @carrycooldude , I tried running this branch on my fork (some minor changes needed), Will look into this error, In the meanwhile will keep the PR/issue open for discussing any suggestions/findings... |
Is this issue still available. I am ready to work on this. I already setup Codecov in one of the open source project. |
@carrycooldude Are you still working on this, or do we close this PR? If you are working on this, could you address the comment left by @lsampras here: #1700 (comment)? |
@SanchithHegde , can I work on this? |
Hey @aialok , Yes I am still working on it and I implemented max. things and it just failing some test |
Reference to this issue: #1593
Type of Change
Description
Additional Changes
Motivation and Context
How did you test it?
Checklist
cargo +nightly fmt --all
cargo clippy