Skip to content

Add Python code coverage collection and reporting#685

Merged
K20shores merged 3 commits intomainfrom
copilot/add-python-code-coverage
Nov 24, 2025
Merged

Add Python code coverage collection and reporting#685
K20shores merged 3 commits intomainfrom
copilot/add-python-code-coverage

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 24, 2025

Extends code coverage reporting to include Python, matching the existing C++/Fortran and JavaScript coverage setup added in #658 and #683.

Changes:

  • pyproject.toml: Added pytest-cov>=4.0.0 to test dependencies
  • codecov.yml: Added python flag targeting the python/ directory with XML report upload
  • .github/workflows/coverage.yml: Added python-coverage job that builds the wheel, runs pytest --cov, and uploads results to Codecov

The workflow mirrors the JavaScript coverage job structure and uses the same test execution pattern as the existing python-tests.yml workflow for consistency.

Original prompt

This section details on the original issue you should resolve

<issue_title>Python code coverage</issue_title>
<issue_description>In #658 and #683, code coverage was added for javascript and combined in a shared report with the cpp/fortran code coverage. We need to add the python code

Acceptance criteria

  • Code coverage for python code is collected and reported

Ideas

  • Add another section in codecov.yml for python</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add Python code coverage to report Add Python code coverage collection and reporting Nov 24, 2025
Copilot AI requested a review from K20shores November 24, 2025 20:29
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.39%. Comparing base (f91fe87) to head (873ce4c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #685      +/-   ##
==========================================
+ Coverage   81.12%   81.39%   +0.27%     
==========================================
  Files          65      112      +47     
  Lines        7538     9837    +2299     
==========================================
+ Hits         6115     8007    +1892     
- Misses       1423     1830     +407     
Flag Coverage Δ
cpp_fortran 79.74% <ø> (ø)
javascript 92.19% <ø> (ø)
python 82.29% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@K20shores K20shores marked this pull request as ready for review November 24, 2025 20:33
@K20shores K20shores merged commit 6b2952c into main Nov 24, 2025
125 of 164 checks passed
@K20shores K20shores deleted the copilot/add-python-code-coverage branch November 24, 2025 21:21
@K20shores K20shores mentioned this pull request Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python code coverage

4 participants