Coverage reporting refactor and cleanup - #397
Conversation
de82f8e to
6912510
Compare
62bc579 to
231bbd9
Compare
8b40a0f to
ff18080
Compare
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
astrofrog
left a comment
There was a problem hiding this comment.
This seems ok to me! Did you test it out on a real package? If so feel free to merge.
No combining may be needed
|
I'm having trouble with it on sunpy: sunpy/sunpy#8665 |
|
Do people think it's worth throwing a warning about the |
I would say, yes. Not everyone follows the PRs here or even read the change log. |
|
Ok, done, and failing test added to demo. I think this is ready, I'll put out a 3.0 after this. |
pllim
left a comment
There was a problem hiding this comment.
I have a comment and a question.
|
So you just gonna leave the |
yep lol |
Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
|
|
* Bump the actions group in /.github/workflows with 6 updates Bumps the actions group in /.github/workflows with 6 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `6.0.2` | `7.0.0` | | [actions/setup-python](https://github.com/actions/setup-python) | `6.2.0` | `6.3.0` | | [actions/cache](https://github.com/actions/cache) | `5.0.5` | `6.1.0` | | [OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml](https://github.com/openastronomy/github-actions-workflows) | `2.6.3` | `3.0.1` | | [OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml](https://github.com/openastronomy/github-actions-workflows) | `2.6.3` | `3.0.1` | | [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) | `8.1.0` | `8.2.0` | Updates `actions/checkout` from 6.0.2 to 7.0.0 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@de0fac2...9c091bb) Updates `actions/setup-python` from 6.2.0 to 6.3.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@a309ff8...ece7cb0) Updates `actions/cache` from 5.0.5 to 6.1.0 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@27d5ce7...55cc834) Updates `OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml` from 2.6.3 to 3.0.1 - [Release notes](https://github.com/openastronomy/github-actions-workflows/releases) - [Commits](OpenAstronomy/github-actions-workflows@2835f0c...e5af21e) Updates `OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml` from 2.6.3 to 3.0.1 - [Release notes](https://github.com/openastronomy/github-actions-workflows/releases) - [Commits](OpenAstronomy/github-actions-workflows@2835f0c...e5af21e) Updates `astral-sh/setup-uv` from 8.1.0 to 8.2.0 - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](astral-sh/setup-uv@0880764...fac544c) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: actions/setup-python dependency-version: 6.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions - dependency-name: actions/cache dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml dependency-version: 3.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml dependency-version: 3.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions - dependency-name: astral-sh/setup-uv dependency-version: 8.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com> * TST: Define COVERAGE_FILE in tox.ini as per OpenAstronomy/github-actions-workflows#397 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
fixes #395 and fixes #383
This PR makes the following changes:
setenv = COVERAGE_FILE={toxinidir}/.coverageintox.iniif your tests are not run in the{toxinidir}directory, so that reporting finds the.coveragefile.coverage: codecovno longer requires the use ofpytest-cov, the xml coverage report is generated using coverage.py in a separate step to the tox run.CODECOV_TOKENif using this.coverage: githubis now tested against both pytest-cov and coverage.py, and as long as the.coveragefiles are in the root directory will work correctly.