diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 9136a46..9501112 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -281,18 +281,11 @@ 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' }} 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 diff --git a/pyproject.toml b/pyproject.toml index aa6ac86..6d43f4e 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 = [