From 6cd2dc535d91bc83f98d718615004e879d9b0cd9 Mon Sep 17 00:00:00 2001 From: Harmon Date: Wed, 23 Dec 2020 16:22:57 -0600 Subject: [PATCH] Send coverage to Coveralls in GitHub Actions Test workflow --- .github/workflows/test.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a5b6e8e..9126509 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,3 +22,23 @@ jobs: - name: Run tests run: | python setup.py nosetests + - name: Send coverage to Coveralls + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_FLAG_NAME: python-${{ matrix.python-version }} + COVERALLS_PARALLEL: true + if: ${{ github.event_name == 'push' }} + run: | + coveralls + coveralls: + needs: test + if: ${{ github.event_name == 'push' }} + runs-on: ubuntu-latest + container: python:3-slim + steps: + - name: Finish sending coverage to Coveralls + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + pip install coveralls + coveralls --finish -- 2.25.1