From d2ec84d71a2192ec0e2c244fe580753e03b90dd1 Mon Sep 17 00:00:00 2001 From: Kevin Adler Date: Thu, 19 Oct 2023 11:18:46 -0500 Subject: [PATCH] ci: Add coverage analysis via coveralls.io --- .github/workflows/build.yml | 4 ++++ pyproject.toml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d483f54..36df7c4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,3 +37,7 @@ jobs: poetry install - name: Run tests run: python -m pytest tests + - name: Report coverage + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + run: python -m coveralls diff --git a/pyproject.toml b/pyproject.toml index 69f6e20..80bedad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,10 @@ coverage = [ { version = ">=6.3.0", python = ">=3.7" }, { version = ">=4.5.4", python = "<3.7" }, ] +coveralls = [ + { version = ">=3.3.0", python = ">=3.5" }, + { version = "<2", python = "<3.5" }, +] pytest-cov = "~2.8" flake8 = ">=3.6.0" mock = "^3.0.5"