From 7d28bc6a2bcf43a28ccf81212637134c9a80deee Mon Sep 17 00:00:00 2001 From: Divyansh Sharma <160004774+ddivyanshsharmaa@users.noreply.github.com> Date: Sun, 1 Nov 2026 20:03:24 +0530 Subject: [PATCH] ci(coverage): use the sysmon tracing core to speed up the coverage job On Python 3.12 the sysmon core counted exactly the same lines as the default core (13958 of 16208, 86.118%) and cut the test time from 721 s to 521 s on one run and from 1486 s to 483 s on another, on ubuntu-latest. Refs #898 --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 611a1a4e9..0d7f56019 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,6 +168,10 @@ jobs: key: robot-descriptions-v2-${{ runner.os }}-3.12 - name: Run coverage + env: + # Python 3.12's lighter tracing core (sys.monitoring). It counts exactly the + # same lines as the default core here, in far less time (#898). + COVERAGE_CORE: sysmon run: pytest tests/ --ignore=tests/test_blocks.py --cov=roboticstoolbox --cov-report=xml:coverage.xml -q - uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1