diff --git a/.codecov.yml b/.codecov.yml index 1773042..47d2c28 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -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%' \ No newline at end of file diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 8de0c4b..26597b1 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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