Skip to content

Commit c60a393

Browse files
committed
In Python 3.12 and newer configure coverage to use sys.monitoring
sys.monitoring is a highly-efficient, low-overhead event monitoring API built into CPython added in Python 3.12.
1 parent ced156c commit c60a393

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
run: uv sync --no-default-groups --group test
3737

3838
- name: Run tests
39+
env:
40+
COVERAGE_CORE: $${ matrix.python-version != '3.11' && 'sysmon' || '' }
3941
run: uv run --no-default-groups --group test python -Xutf8 -m pytest tests
4042

4143
- name: Upload test results to Codecov

0 commit comments

Comments
 (0)