From 826871f80d1c0dd14b6d594e45645996882d49cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Fri, 24 Jul 2026 19:39:49 +0200 Subject: [PATCH 1/2] DEP: upgrade minimal requirement on `coverage.py` and leverage auto combining --- .github/workflows/tox.yml | 8 -------- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 9136a469..b06f275f 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -281,14 +281,6 @@ jobs: with: paths: "**/results.xml" - - name: Combine converage reports for Codecov - # Even if tox fails, upload coverage - if: ${{ (success() || failure()) && contains(matrix.coverage, 'codecov') && matrix.pytest == 'true' }} - # If there's not multiple files to combine then this will error but that's ok - continue-on-error: true - run: | - uvx coverage combine - - name: Generate xml report for Codecov # Even if tox fails, upload coverage if: ${{ (success() || failure()) && contains(matrix.coverage, 'codecov') && matrix.pytest == 'true' }} diff --git a/pyproject.toml b/pyproject.toml index aa6ac868..6d43f4e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ concurrency = [ ] covcheck = [ "coverage[toml] ; python_version < '3.11'", - "coverage>=7.11.3", + "coverage>=7.14.0", "pytest-cov>=7.0.0", ] test = [ From 71f36613be07631f883887875fcf7ae5a4dc52fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Fri, 24 Jul 2026 19:45:59 +0200 Subject: [PATCH 2/2] dbg --- .github/workflows/tox.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index b06f275f..95011125 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -285,6 +285,7 @@ jobs: # Even if tox fails, upload coverage if: ${{ (success() || failure()) && contains(matrix.coverage, 'codecov') && matrix.pytest == 'true' }} run: | + ls -altr if [ ! -f ".coverage" ]; then echo "::error title=Misconfigured coverage reporting::No .coverage file was found in the root directory, this is now a requirement for uploading coverage to Codecov. See the documentation for more information: https://github-actions-workflows.openastronomy.org/en/stable/tox.html#coverage" fi