Add ability to use specific coverage core

This commit is contained in:
Jeff Epler 2023-12-27 18:35:47 -06:00
parent fa30aa6084
commit 5534666f07
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE
2 changed files with 11 additions and 2 deletions

View file

@ -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()

View file

@ -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 <jepler@gmail.com>
# SPDX-FileCopyrightText: 2021 Jeff Epler