Skip to content

Move to 2-stage coverage check#3108

Merged
ahopkins merged 4 commits into
mainfrom
two-stage-coverage-check
Dec 28, 2025
Merged

Move to 2-stage coverage check#3108
ahopkins merged 4 commits into
mainfrom
two-stage-coverage-check

Conversation

@ahopkins

Copy link
Copy Markdown
Member

This will hopefully solve the problem where codecov was not running because the token is not available to PRs from non-contributors.

@ahopkins ahopkins requested a review from a team as a code owner December 28, 2025 10:28
Copilot AI review requested due to automatic review settings December 28, 2025 10:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR implements a 2-stage coverage check workflow to work around limitations where the CODECOV_TOKEN is not accessible to PRs from non-contributors. The first stage runs coverage tests and uploads the coverage report as an artifact, while the second stage (triggered by workflow_run) downloads the artifact and uploads it to Codecov with proper authentication.

  • Split coverage workflow into two stages: coverage generation and codecov upload
  • First workflow runs on PR events and uploads coverage.xml as an artifact
  • Second workflow uses workflow_run trigger to access secrets and upload to Codecov

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/coverage.yml Modified to upload coverage report as artifact instead of directly uploading to Codecov
.github/workflows/coverage-upload.yml New workflow that downloads coverage artifact and uploads to Codecov with token access

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/coverage-upload.yml Outdated
Comment thread .github/workflows/coverage-upload.yml Outdated
Comment thread .github/workflows/coverage.yml
ahopkins and others added 3 commits December 28, 2025 12:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ahopkins ahopkins merged commit b51fa73 into main Dec 28, 2025
27 checks passed
@ahopkins ahopkins deleted the two-stage-coverage-check branch December 28, 2025 10:40
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.

2 participants