From 5534666f070b93612d994163edf6208530e2bcc5 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 27 Dec 2023 18:35:47 -0600 Subject: [PATCH] Add ability to use specific coverage core --- .github/workflows/test.yml | 11 +++++++++-- Makefile | 2 ++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 10beeb3..5e1bbcb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,14 +23,21 @@ jobs: - '3.11' - '3.12' - '3.13.0-alpha.0 - 3.13' - - 'pypy-3.10' os-version: - 'ubuntu-latest' + coverage-core: + - 'ctrace' include: - os-version: 'macos-latest' python-version: '3.x' - os-version: 'windows-latest' python-version: '3.x' + - os-version: 'ubuntu-latest' + python-version: '3.12' + coverage-core: 'sysmon' + - os-version: 'ubuntu-latest' + python-version: 'pypy-3.10' + coverage-core: 'pytrace' runs-on: ${{ matrix.os-version }} steps: @@ -51,7 +58,7 @@ jobs: run: make mypy PYTHON=python - name: Test - run: make coverage PYTHON=python + run: make coverage PYTHON=python COVERAGE_CORE=${{ matrix.coverage-core }} - name: Upload Coverage as artifact if: always() diff --git a/Makefile b/Makefile index 0a0bb10..12d119d 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,8 @@ BUILDDIR = _build html: @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) +# Pass the desired coverage tracer name to subprocesses +export COVERAGE_CORE # Copyright (C) 2021 Jeff Epler # SPDX-FileCopyrightText: 2021 Jeff Epler