From 5de60cfc7c782a6508c359b27e3a4aaffb497169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Mal=C3=A9s?= <85952626+joaomper-TE@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:59:42 +0100 Subject: [PATCH] Update python.yaml --- .github/workflows/python.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index aae6dd62..3b8d9a5c 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -30,11 +30,14 @@ jobs: for module in $(find . -maxdepth 1 -type d -name "thousandeyes-sdk-*" ! -name "thousandeyes-sdk-core" | cut -c 3-); do pip install -e $module - coverage run --append -m pytest $module + coverage run --source=$module -m pytest $module + # Move the .coverage file to a unique name + mv .coverage .coverage.$module done - # Combine coverage data and generate report - coverage combine + # Combine all .coverage files + coverage combine .coverage.* + coverage report coverage xml - name: Get Coverage