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,15 +25,22 @@ jobs:
pip install pytest pip install pytest
pip install coverage 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 for module in $(find . -maxdepth 1 -type d -name "thousandeyes-sdk-*" ! -name "thousandeyes-sdk-core" | cut -c 3-); do
pip install -e $module pip install -e $module
coverage run -m pytest $module coverage run --append -m pytest $module
done done
# Combine coverage data and generate report
coverage combine
coverage xml coverage xml
- name: Get Cover
- name: Get Coverage
uses: orgoro/coverage@v3.2 uses: orgoro/coverage@v3.2
with: with:
coverageFile: ./coverage.xml coverageFile: ./coverage.xml
thresholdAll: 0.4 thresholdAll: 0.4
thresholdNew: 0.6 thresholdNew: 0.6
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}