mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
feature: add test coverage
Example: https://github.com/joaomper-TE/thousandeyes-sdk-python/pull/25
This commit is contained in:
parent
e76d1fb0d4
commit
6350b6f9f6
12
.github/workflows/python.yaml
vendored
12
.github/workflows/python.yaml
vendored
@ -23,7 +23,17 @@ jobs:
|
||||
- name: Install and test modules
|
||||
run: |
|
||||
pip install pytest
|
||||
pip install coverage
|
||||
|
||||
for module in $(find . -maxdepth 1 -type d -name "thousandeyes-sdk-*" ! -name "thousandeyes-sdk-core" | cut -c 3-); do
|
||||
pip install -e $module
|
||||
pytest $module
|
||||
coverage run -m pytest $module
|
||||
done
|
||||
coverage xml
|
||||
- name: Get Cover
|
||||
uses: orgoro/coverage@v3.2
|
||||
with:
|
||||
coverageFile: ./coverage.xml
|
||||
thresholdAll: 0.4
|
||||
thresholdNew: 0.6
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user