Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
Loading