From 7328f45a163f6032ae26126777fdd6b0ecdf61a8 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Wed, 4 Oct 2023 00:42:45 -0400 Subject: [PATCH] ci: Report coverage to Coveralls --- .github/workflows/ci.yml | 3 +++ README.rst | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 472e7576..50915250 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,3 +35,6 @@ jobs: PYTHONUTF8: 1 run: pytest --cov agate - run: python charts.py + - env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: coveralls --service=github diff --git a/README.rst b/README.rst index 558d5d2f..321e333f 100644 --- a/README.rst +++ b/README.rst @@ -2,6 +2,10 @@ :target: https://github.com/wireservice/agate/actions :alt: Build status +.. image:: https://coveralls.io/repos/wireservice/agate/badge.svg?branch=master + :target: https://coveralls.io/r/wireservice/agate + :alt: Coverage status + .. image:: https://img.shields.io/pypi/dm/agate.svg :target: https://pypi.python.org/pypi/agate :alt: PyPI downloads