Add ability to use specific coverage core
This commit is contained in:
parent
fa30aa6084
commit
5534666f07
2 changed files with 11 additions and 2 deletions
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
|
|
@ -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()
|
||||
|
|
|
|||
2
Makefile
2
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 <jepler@gmail.com>
|
||||
# SPDX-FileCopyrightText: 2021 Jeff Epler
|
||||
|
|
|
|||
Loading…
Reference in a new issue