Skip to content
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

CI: Add CODECOV_TOKEN secret #569

Merged
merged 1 commit into from
Feb 29, 2024
Merged

CI: Add CODECOV_TOKEN secret #569

merged 1 commit into from
Feb 29, 2024

Conversation

danielhollas
Copy link
Contributor

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

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #569   +/-   ##
=======================================
  Coverage   87.07%   87.07%           
=======================================
  Files          27       27           
  Lines        4649     4649           
=======================================
  Hits         4048     4048           
  Misses        601      601           
Flag Coverage Δ
python-3.10 87.07% <ø> (ø)
python-3.9 87.10% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@unkcpz unkcpz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, thanks for taking care of this.

@unkcpz unkcpz merged commit 4bf1ea8 into master Feb 29, 2024
21 checks passed
@unkcpz unkcpz deleted the codecov-token branch February 29, 2024 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants