From 608262e310e6701fa3c6b2242f59ca624feb82af Mon Sep 17 00:00:00 2001 From: Andrew Walker Date: Wed, 10 Apr 2024 09:09:12 +0100 Subject: [PATCH] Have tests report coverage in CI This will help us keep track of current test coverage --- .github/workflows/tests.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9c33f98..bce7b53 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,4 +41,4 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - python3 -m pytest + python3 -m pytest --cov diff --git a/pyproject.toml b/pyproject.toml index 133461d..df284af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ dependencies = ["requests-cache>=1.0", "PyYAML>=6.0"] [project.optional-dependencies] - test = ["pytest", "numpy>=1.5.0", "pytest-subprocess==1.5.0"] + test = ["pytest", "numpy>=1.5.0", "pytest-subprocess==1.5.0", "pytest-cov"] [project.urls] Home = "https://github.com/GreenScheduler/cats"