mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-05 23:45:30 +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 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
|
||||
thresholdAll: 0.4
|
||||
thresholdNew: 0.6
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
coverageFile: ./coverage.xml
|
||||
thresholdAll: 0.4
|
||||
thresholdNew: 0.6
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user