fix codecov config

This commit is contained in:
James Woglom
2023-01-16 19:58:44 -05:00
parent ee85226c2f
commit cffee9cdca
2 changed files with 12 additions and 2 deletions
+4 -2
View File
@@ -5,10 +5,12 @@ coverage:
project:
default: false
tconnectsync:
paths: "tconnectsync/"
paths:
- "tconnectsync/"
target: '75%'
threshold: '5%'
tests:
paths: "tests/"
paths:
- "tests/"
target: '95%'
threshold: '5%'
+8
View File
@@ -41,6 +41,14 @@ jobs:
- name: Test with pytest
run: |
pytest
- name: Check codecov configuration
run: |
curl -X POST --data-binary @.codecov.yml https://codecov.io/validate
if [[ "$(curl -s -o /dev/null -w "%{http_code}" -X POST --data-binary @.codecov.yml https://codecov.io/validate)" != "200" ]]; then
echo Error parsing codecov file
exit 1
fi
- name: Generate Coverage Report
run: |
pip install coverage