Skip to content

Fix Codecov code coverage analysis from test data #1434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 26, 2025
Merged
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
21 changes: 17 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,24 @@ jobs:
run: uv sync --all-extras --dev

- name: Run tests
run: uv run inv pytest --junit --no-pty --base
run: uv run python -m pytest --cov --cov-config=pyproject.toml --cov-report=xml tests

- name: Run isolated tests
run: uv run inv pytest --junit --no-pty --isolated
run: uv run python -m pytest --cov --cov-config=pyproject.toml --cov-report=xml tests_isolated

- name: Upload coverage reports to Codecov with GitHub Action on Python 3.13 for each OS
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
flags: python${{ matrix.python-version }}
name: codecov-umbrella-test-results
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: ${{ matrix.python-version == '3.13' }}
with:
env_vars: OS,PYTHON
fail_ci_if_error: true
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
Loading