Skip to content

Commit

Permalink
Setup coverage testing, closes kivy#1058
Browse files Browse the repository at this point in the history
Also enables report to coveralls.io via GitHub Action.
  • Loading branch information
AndreMiras committed Apr 10, 2020
1 parent 916dc6b commit fb77215
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ jobs:
- name: Test
run: |
docker run buildozer --version
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ envlist = pep8,py27,py3
deps =
mock
pytest
py3: coveralls
commands = pytest tests/

[testenv:py3]
# for py3 env we will get code coverage
commands =
coverage run --branch --source=buildozer -m pytest {posargs:tests/}
coverage report -m

[testenv:pep8]
deps = flake8
commands = flake8 buildozer/
Expand Down

0 comments on commit fb77215

Please sign in to comment.