diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 26c1fa7..0000000 --- a/.coveragerc +++ /dev/null @@ -1,4 +0,0 @@ -[run] -omit = - tests/* - teatime/utils.py diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5fbfb0f..242d5a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,11 +23,19 @@ jobs: run: pip install tox-gh-actions - name: Test with tox run: tox - - name: Upload to Coveralls - run: coveralls - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - + - name: Coveralls + uses: AndreMiras/coveralls-python-action@develop + with: + parallel: true + flag-name: Unit Test + coveralls_finish: + needs: test + runs-on: ubuntu-latest + steps: + - name: Coveralls Finished + uses: AndreMiras/coveralls-python-action@develop + with: + parallel-finished: true deploy: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') needs: test diff --git a/tox.ini b/tox.ini index f5a5428..cf60adf 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,6 @@ [tox] envlist = py36, py37, py38, lint, doctest -[travis] -python = - 3.8: py38 - 3.7: py37 - 3.6: py36 - [testenv] setenv = PYTHONPATH = {toxinidir} deps = @@ -14,7 +8,7 @@ deps = -r{toxinidir}/requirements_dev.txt commands = pip install -U pip - pytest --basetemp={envtmpdir} --cov=teatime + pytest --basetemp={envtmpdir} --cov=teatime --cov-report term --cov-branch [testenv:lint] basepython = python @@ -23,3 +17,9 @@ commands = black --diff --check {toxinidir}/teatime {toxinidir}/tests [testenv:doctest] commands = sphinx-build {posargs:-E} -b html docs dist/docs -q --color + +[coverage:run] +relative_files = True +omit = + tests/* + teatime/utils.py