👷 Add Codecov to CI, Smokeshow/Cloudflare has been flaky lately (#1303)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Sebastián Ramírez 2025-02-21 12:59:48 +01:00 committed by GitHub
parent ee16ba4dc3
commit 759220d592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -74,13 +74,23 @@ jobs:
env:
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.pydantic-version }}
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
# TODO: if removing Smokeshow, and moving only to Codecov, remove this
# Upload files before running Codecov, as it generates an extra file coverage/coverage.xml, and that breaks coverage-combine
- name: Store coverage files
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}-${{ matrix.pydantic-version }}
path: coverage
include-hidden-files: true
- uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
files: ./coverage.xml
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
# TODO: if removing Smokeshow, and moving only to Codecov, remove this
coverage-combine:
needs:
- test

View File

@ -7,3 +7,4 @@ coverage run -m pytest tests
coverage combine
coverage report
coverage html
coverage xml