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

Codecov reports upload fails in CI #81

Open
imagejan opened this issue Jan 9, 2025 · 0 comments
Open

Codecov reports upload fails in CI #81

imagejan opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@imagejan
Copy link

imagejan commented Jan 9, 2025

Describe the Bug

It seems that codecov reports aren't uploaded during CI runs since quite a while:
https://app.codecov.io/gh/bioio-devs/bioio/commits

The "Upload Codecov" step fails with:

error - 2024-12-03 17:32:22,145 -- Upload failed: {"message":"Token required because branch is protected"}

... but doesn't fail the GitHub Actions workflow.

Expected Behavior

With the current setup in .github/workflows, coverage reports should be uploaded for every commit.

Proposed solution

Add a CODECOV_TOKEN secret to the bioio-devs org if not yet present, and use that token in the codecov-action:

- name: Upload Codecov
uses: codecov/codecov-action@v5

Environment

GitHub Actions

@imagejan imagejan added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant