Skip to content

Commit

Permalink
Make coveralls separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
dmuhs committed Jan 24, 2021
1 parent 29f33e1 commit 2a3e0c9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
4 changes: 0 additions & 4 deletions .coveragerc

This file was deleted.

18 changes: 13 additions & 5 deletions .github/workflows/main.yml
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions tox.ini
@@ -1,20 +1,14 @@
[tox]
envlist = py36, py37, py38, lint, doctest

[travis]
python =
3.8: py38
3.7: py37
3.6: py36

[testenv]
setenv = PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements.txt
-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
Expand All @@ -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

0 comments on commit 2a3e0c9

Please sign in to comment.