Skip to content

Conversation

@jenstroeger
Copy link
Owner

Based on the Optimizing coverage with Python 3.12’s sys.monitoring blog section, this change almost doubles the performance of test runs (based on trying this change in three production repos).

@jenstroeger jenstroeger requested a review from behnazh as a code owner May 2, 2025 03:13
- id: pytest
name: Run unit tests
entry: pytest -c pyproject.toml --cov-config pyproject.toml src/package/ tests/ docs/
entry: env COVERAGE_CORE=sysmon pytest -c pyproject.toml --cov-config pyproject.toml src/package/ tests/ docs/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment based on the PR description to explain why COVERAGE_CORE=sysmon is necessary here, and also mention that this option is only recommended for Python version > 3.12.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit 33a1209.

behnazh
behnazh previously approved these changes Sep 10, 2025
@jenstroeger jenstroeger requested a review from behnazh September 20, 2025 04:46
@jenstroeger jenstroeger merged commit 46d6167 into main Sep 20, 2025
13 checks passed
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.

3 participants