mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
Update python.yaml
This commit is contained in:
parent
6350b6f9f6
commit
118bf9877a
19
.github/workflows/python.yaml
vendored
19
.github/workflows/python.yaml
vendored
@ -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 }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user