Skip to content

Codecov coverage badge#44

Merged
gregnazario merged 1 commit intomainfrom
cursor/codecov-coverage-badge-2821
Mar 6, 2026
Merged

Codecov coverage badge#44
gregnazario merged 1 commit intomainfrom
cursor/codecov-coverage-badge-2821

Conversation

@gregnazario
Copy link
Contributor

Add Codecov support and badge to the README, and refresh the README for improved clarity and discoverability.

The repository already had a Codecov configuration and CI job, but the upload step was missing the necessary token for authentication. This PR completes the setup and integrates the coverage badge into the refreshed README.


Open in Web Open in Cursor 

- Add codecov token to coverage upload step in CI workflow
- Add badges to README: CI status, Codecov coverage, license, Rust version, API docs
- Reorganize examples section into categorized tables including previously unlisted
  examples (balance_checker, simulation, account_management, indexer_queries, event_queries)
- Add architecture overview section with directory tree
- Add link to API reference on GitHub Pages
- Improve formatting with em dashes and tables for workspace layout

Co-authored-by: Greg Nazario <greg@gnazar.io>
@cursor
Copy link

cursor bot commented Mar 5, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@gregnazario gregnazario marked this pull request as ready for review March 5, 2026 17:34
@gregnazario gregnazario requested a review from Copilot March 5, 2026 17:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Codecov upload authentication and updates README content to improve project discoverability, including a coverage badge.

Changes:

  • Adds Codecov coverage badge and refreshes README structure/content (features, examples, architecture).
  • Updates CI workflow to provide CODECOV_TOKEN to the Codecov upload step.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
README.md Adds CI/Codecov badges and reorganizes documentation for clarity and discoverability.
.github/workflows/ci.yml Supplies Codecov token to enable authenticated coverage uploads.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 317 to 323
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: crates/aptos-sdk/target/coverage/cobertura.xml
flags: unittests
name: aptos-sdk-coverage
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

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

Providing secrets.CODECOV_TOKEN unconditionally can break CI for pull requests from forks (secrets are not available there), causing the upload step to fail. Consider either (a) omitting the token entirely if this repo can use Codecov tokenless uploads, or (b) gating the step/token usage with an if: condition that only runs uploads when secrets are available / when the PR originates from the same repository.

Copilot uses AI. Check for mistakes.
@gregnazario gregnazario enabled auto-merge (rebase) March 6, 2026 02:04
@gregnazario gregnazario disabled auto-merge March 6, 2026 02:04
@gregnazario gregnazario merged commit 612df20 into main Mar 6, 2026
19 checks passed
@gregnazario gregnazario deleted the cursor/codecov-coverage-badge-2821 branch March 6, 2026 02:04
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.

3 participants