From 32e81e024f593ed1e72a6fa236d5b17790994f2a Mon Sep 17 00:00:00 2001 From: Michael Dales Date: Sat, 8 Feb 2025 16:24:48 +0000 Subject: [PATCH] Add test coverage report --- .github/workflows/python-package.yml | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 319a512..a157d69 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -32,10 +32,10 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install "numpy<2" gdal[numpy]==3.9.2 scikit-image "h3==4.0.0b5" - python -m pip install pylint mypy pytest types-setuptools + python -m pip install pylint mypy pytest types-setuptools pytest-cov - name: Lint with pylint run: | python3 -m pylint yirgacheffe - name: Test with pytest run: | - python3 -m pytest -vv + python3 -m pytest --cov=yirgacheffe -vv diff --git a/pyproject.toml b/pyproject.toml index e3ea924..a4b0cd4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [ requires-python = ">=3.10" [project.optional-dependencies] -dev = ["mypy", "pylint", "pytest", "h3"] +dev = ["mypy", "pylint", "pytest", "h3", "pytest-cov"] [project.urls] Homepage = "https://github.com/quantifyearth/yirgacheffe"