diff --git a/.github/workflows/pytests.yml b/.github/workflows/pytests.yml index cb8bec3..127c685 100644 --- a/.github/workflows/pytests.yml +++ b/.github/workflows/pytests.yml @@ -29,9 +29,9 @@ jobs: - name: Install dependencies run: | pip install -r requirements.txt - - name: Test with pytest + - name: Test with pytest and generate coverage reports run: | - python -m pytest + python -m pytest --cov - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 diff --git a/environment.yml b/environment.yml index 227ec9e..2c5ec16 100644 --- a/environment.yml +++ b/environment.yml @@ -12,6 +12,7 @@ dependencies: - pykml - pyproj - pytest + - pytest-cov # codecov reports - scipy - shapely - pre-commit # pre-commit hooks diff --git a/requirements.txt b/requirements.txt index 97a559f..3b62fd9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,5 +10,6 @@ pyarrow>=15.0.0 pykml>=0.2.0 pyproj>=3.4.1 pytest>=7.2.2 +pytest-cov>=4.1.0 scipy>=1.10.1 shapely>=2.0.1