From a709b9259f895e571be92ca40c5b3ba8ace4e4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Gl=C3=A4=C3=9Fle?= Date: Wed, 30 Sep 2020 15:51:13 +0200 Subject: [PATCH] Record test coverage --- .github/workflows/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5c997db..14979cb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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') && @@ -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 }}