diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 9136a46..9914ee3 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -281,13 +281,13 @@ jobs: with: paths: "**/results.xml" - - name: Combine converage reports for Codecov + - name: Combine coverage 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 + uv run --group covcheck coverage combine - name: Generate xml report for Codecov # Even if tox fails, upload coverage @@ -296,7 +296,7 @@ jobs: 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 - uvx coverage xml -i + uv run --group covcheck coverage xml -i - name: Upload to Codecov # Even if tox fails, upload coverage @@ -346,10 +346,10 @@ jobs: - name: Combine Coverage continue-on-error: true - run: uvx coverage combine + run: uv run --group covcheck coverage combine - name: Combine Coverage - run: uvx coverage report -i -m --format=markdown >> $GITHUB_STEP_SUMMARY + run: uv run --group covcheck coverage report -i -m --format=markdown >> $GITHUB_STEP_SUMMARY - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: diff --git a/pyproject.toml b/pyproject.toml index aa6ac86..b016364 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.11.3, <7.14.0", "pytest-cov>=7.0.0", ] test = [