Skip to content

Use the Codecov CLI to upload coverage  #2256

Open
@matthewfeickert

Description

@matthewfeickert

Summary

To potentially use Sentry's/Codecov's ATS we first need to use the Codecov CLI to upload our coverage reports.

https://docs.codecov.com/docs/the-codecov-cli#how-to-upload-to-codecov makes it seem like the workflow would be

$ python -m pip install --upgrade codecov-cli
$ codecovcli create-commit
$ codecovcli create-report
$ codecovcli do-upload

though I'm not sure how to replace all the options we use with the codecov-action

# Report coverage for oldest and newest Python tested to deal with version differences
- name: Report core project coverage with Codecov
if: >-
github.event_name != 'schedule' &&
matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
flags: unittests-${{ matrix.python-version }}

Additional Information

CLI Options: https://docs.codecov.com/docs/cli-options

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions