diff --git a/.github/workflows/test_python.yml b/.github/workflows/test_python.yml index ab73126a9..0a33b1152 100644 --- a/.github/workflows/test_python.yml +++ b/.github/workflows/test_python.yml @@ -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 }} diff --git a/tox.ini b/tox.ini index 952edccd6..ca07806d4 100644 --- a/tox.ini +++ b/tox.ini @@ -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/