diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fac295f4e..821eb4430 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,6 +3,8 @@ name: CI on: # yamllint disable-line rule:truthy pull_request: branches: ["master"] + push: + branches: ["master"] jobs: test: @@ -30,3 +32,20 @@ jobs: run: source .venv/bin/activate && make flake black-check - name: Test run: source .venv/bin/activate && make tests + - name: Upload Coverage + run: .venv/bin/coveralls --service=github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_FLAG_NAME: py${{ matrix.python }} + COVERALLS_PARALLEL: true + + coverage: + needs: test + runs-on: ubuntu-20.04 + steps: + - name: Set up Python + uses: actions/setup-python@v2 + - name: Finalise Coverage + run: pip3 install --upgrade coveralls && coveralls --service=github --finish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index ab5f971ab..354edb558 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Zappa - Serverless Python -[![Build Status](https://travis-ci.org/zappa/Zappa.svg)](https://travis-ci.org/zappa/Zappa) +[![CI](https://github.com/zappa/Zappa/actions/workflows/ci.yaml/badge.svg?branch=master&event=push)](https://github.com/zappa/Zappa/actions/workflows/ci.yaml) [![Coverage](https://img.shields.io/coveralls/zappa/Zappa.svg)](https://coveralls.io/github/zappa/Zappa) [![PyPI](https://img.shields.io/pypi/v/Zappa.svg)](https://pypi.python.org/pypi/zappa) [![Slack](https://img.shields.io/badge/chat-slack-ff69b4.svg)](https://zappateam.slack.com/)