diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index f29742a9b52..f8fd0d15acf 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -43,7 +43,7 @@ jobs: run: pip list - name: Run pytest checks run: | - pytest --cov --cov-report=xml + pytest --cov=torchgeo --cov-report=xml python3 -m torchgeo --help - name: Report coverage uses: codecov/codecov-action@v5.3.1 @@ -75,7 +75,7 @@ jobs: run: pip list - name: Run pytest checks run: | - pytest --cov --cov-report=xml + pytest --cov=torchgeo --cov-report=xml python3 -m torchgeo --help - name: Report coverage uses: codecov/codecov-action@v5.3.1 @@ -107,7 +107,7 @@ jobs: run: pip list - name: Run pytest checks run: | - pytest --cov --cov-report=xml + pytest --cov=torchgeo --cov-report=xml python3 -m torchgeo --help - name: Report coverage uses: codecov/codecov-action@v5.3.1 diff --git a/docs/user/contributing.rst b/docs/user/contributing.rst index 033fcecdea2..f6a60ec0c80 100644 --- a/docs/user/contributing.rst +++ b/docs/user/contributing.rst @@ -58,7 +58,7 @@ For example, if you add a new dataset in ``torchgeo/datasets/foo.py``, you'll ne .. code-block:: console - $ pytest --cov=torchgeo.datasets.foo tests/datasets/test_foo.py + $ pytest --cov=torchgeo.datasets tests/datasets/test_foo.py ========================= test session starts ========================= platform darwin -- Python 3.10.11, pytest-6.2.4, py-1.9.0, pluggy-0.13.0 rootdir: ~/torchgeo, configfile: pyproject.toml diff --git a/pyproject.toml b/pyproject.toml index a6e16d1be59..bbcab8b4cbf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -144,9 +144,6 @@ exclude_also = [ ] show_missing = true -[tool.coverage.run] -source_pkgs = ["torchgeo"] - # https://mypy.readthedocs.io/en/stable/config_file.html [tool.mypy] # Import discovery