Skip to content

Commit

Permalink
Record test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Sep 30, 2020
1 parent aa05753 commit a709b92
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ jobs:
python-version: ${{ matrix.python }}

- run: python -m pip install -U pip
- run: python -m pip install setuptools wheel flake8 twine pytest
- run: python -m pip install setuptools wheel twine
- run: python -m pip install flake8 pytest coverage coveralls

- run: python setup.py sdist bdist_wheel
- run: python -m pip install dist/*.whl

- run: twine check dist/*
- run: flake8
- run: pytest
- run: coverage run --source=funcwrap -m pytest

- name: Publish PyPI package
if: startsWith(github.ref, 'refs/tags/v') &&
Expand All @@ -43,3 +44,8 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*.whl dist/*.tar.gz

- run: coveralls
if: env.COVERALLS_REPO_TOKEN != ''
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}

0 comments on commit a709b92

Please sign in to comment.