-
Notifications
You must be signed in to change notification settings - Fork 23
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 codecov upload for forks and main #69
base: main
Are you sure you want to change the base?
Conversation
Also the #54 doesn't specify if we need some treshold or specific config, so I left the one that was already in the repository |
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.
looks ok, let's check it
7c24420
to
8cd73f4
Compare
@tisnik let's try using |
Hmm the condition for repository doesn't work, I would expect the without token action will be taken 🤔 |
@r0x0d could you tell me more about problems in convert2rhel regarding this? Because it looks to me that the PR workflow is running in the main repo context, so adding the token should work even for PRs from forks |
What we noticed was that from time to time, we had to retrigger the coverage workflow because it failed to push the results to codecov.
Not sure if runs strictly on main context, as it should work for each PR instead: https://github.com/oamg/convert2rhel/blob/main/.github/workflows/coverage.yml#L45-L75 As seen in the workflow above, we tried to implement a "retry" in the workflow, that helped a bit. |
I did change the conditions little bit with latest commit, will see what happens. Anyway @tisnik I will need someone with acces to settings to set up the codecov token |
ok, what should I do? Generate the token on codecov.io first? |
Yes, @tisnik. In codecov you can look for the settings of road-core/service and there will be a token... After that, just create a secret |
@tisnik this should lead you the way: https://app.codecov.io/gh/road-core/service/config/general if you have configured codecov for this org already 🤔 |
@andywaltlova registered our repo on codecov.io. Now it waits for maintainer of our group to ack codecov.io as an app for GH. |
With codecov v4+ forks are detected automatically and tokenless upload is used Signed-off-by: Andrea Waltlova <[email protected]> Signed-off-by: Andrea Waltlova <[email protected]>
124d68f
to
f50450c
Compare
Great I will wait for that, I just simplified the workflow because I verified i ndifferent repo that v4+ codecov action is able to detect forks on its own (https://github.com/codecov/codecov-action?tab=readme-ov-file#v4-release) |
Description
Type of change
Related Tickets & Documents
Checklist before requesting a review
Testing