Skip to content

Commit

Permalink
Enforce 100% coverage (#283)
Browse files Browse the repository at this point in the history
* Enforce 100% coverage

* Update .github/workflows/python-package.yml

* Update .github/workflows/python-package.yml
  • Loading branch information
JeffLIrion committed Jan 16, 2022
1 parent a242320 commit 0cc3297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
COVERALLS_SERVICE_NAME: github
run: |
if python --version 2>&1 | grep -q "Python 2" || python --version 2>&1 | grep -q "Python 3.5" || python --version 2>&1 | grep -q "Python 3.6" ; then for synctest in $(cd tests && ls test*.py | grep -v async); do python -m unittest discover -s tests/ -t . -p "$synctest" || exit 1; done; fi
if python --version 2>&1 | grep -q "Python 3.7" || python --version 2>&1 | grep -q "Python 3.8" || python --version 2>&1 | grep -q "Python 3.9"|| python --version 2>&1 | grep -q "Python 3.10"; then coverage run --source androidtv -m unittest discover -s tests/ -t . && coverage report -m && coveralls; fi
if python --version 2>&1 | grep -q "Python 3.7" || python --version 2>&1 | grep -q "Python 3.8" || python --version 2>&1 | grep -q "Python 3.9"|| python --version 2>&1 | grep -q "Python 3.10"; then coverage run --source androidtv -m unittest discover -s tests/ -t . && coverage report -m --fail-under 100 && coveralls; fi

0 comments on commit 0cc3297

Please sign in to comment.