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