From: Harmon Date: Wed, 23 Dec 2020 22:22:57 +0000 (-0600) Subject: Send coverage to Coveralls in GitHub Actions Test workflow X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6cd2dc535d91bc83f98d718615004e879d9b0cd9;p=tweepy.git Send coverage to Coveralls in GitHub Actions Test workflow --- 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