From 954295271e73c5a638e1ce3a548775a0b80cb906 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Thu, 4 Jan 2024 13:36:39 +0100 Subject: [PATCH] ci: upload test coverage to Codecov (#352) --- .github/workflows/test.yml | 5 ++++- setup.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a286cac..61c31f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,4 +26,7 @@ jobs: run: pip install tox tox-gh-actions - name: Run tox - run: tox + run: tox -- --cov --cov-report=xml + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 diff --git a/setup.py b/setup.py index c73f3a9..600d401 100644 --- a/setup.py +++ b/setup.py @@ -54,6 +54,7 @@ "coverage>=7.4,<7.5", "pylint>=3,<3.1", "pytest>=7.4,<7.5", + "pytest-cov>=4.1.0,<4.2", "mypy>=1.8,<1.9", "types-python-dateutil", "types-requests",