From 4882bc7e6642062c325f458fd3323b85d525b4e0 Mon Sep 17 00:00:00 2001 From: Jerome Kelleher Date: Mon, 15 Jul 2024 11:03:38 +0100 Subject: [PATCH] Add coverage output --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae69a91..0c1892e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,10 +81,13 @@ jobs: python -m pip install --upgrade pip python -m pip install '.[dev]' # Build the extension module in-place so pytest can find it - python3 setup.py build_ext --inplace + export CFLAGS="--coverage" python3 setup.py build_ext --inplace - name: Run tests run: | pytest -vs tests/test_cpython_interface.py + - name: Show coverage + run: | + gcovr --filter vcztools c_test: name: C tests