Update python.yaml

This commit is contained in:
João Malés 2024-09-27 13:47:53 +01:00 committed by GitHub
parent 6350b6f9f6
commit 118bf9877a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,12 +25,19 @@ jobs:
pip install pytest
pip install coverage
# Initialize coverage data file
coverage erase
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 -m pytest $module
coverage run --append -m pytest $module
done
# Combine coverage data and generate report
coverage combine
coverage xml
- name: Get Cover
- name: Get Coverage
uses: orgoro/coverage@v3.2
with:
coverageFile: ./coverage.xml