aiidalab / aiidalab-widgets-base

Reusable widgets for AiiDAlab applications
MIT License
6 stars 17 forks source link

CI: Add CODECOV_TOKEN secret #569

Closed danielhollas closed 4 months ago

danielhollas commented 4 months ago

Starting from codecov-action@v4, Codecov requires setting up a CODECOV_TOKEN, otherwise the upload will fail. Note that forks don't require this token, only PRs from the original repo so forks don't need (and don't have) access to this token.

I've generated a global token for aiidalab org at https://app.codecov.io/account/gh/aiidalab/org-upload-token

image

I then I added the token as an organization-wide secret on Github so that we don't have to configure it on every repo.

https://github.com/organizations/aiidalab/settings/secrets/actions

image

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.07%. Comparing base (3bce8e7) to head (b75c762). Report is 3 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #569 +/- ## ======================================= Coverage 87.07% 87.07% ======================================= Files 27 27 Lines 4649 4649 ======================================= Hits 4048 4048 Misses 601 601 ``` | [Flag](https://app.codecov.io/gh/aiidalab/aiidalab-widgets-base/pull/569/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiidalab) | Coverage Δ | | |---|---|---| | [python-3.10](https://app.codecov.io/gh/aiidalab/aiidalab-widgets-base/pull/569/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiidalab) | `87.07% <ø> (ø)` | | | [python-3.9](https://app.codecov.io/gh/aiidalab/aiidalab-widgets-base/pull/569/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiidalab) | `87.10% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aiidalab#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.