diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3f2547c..4622aef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,7 +48,7 @@ jobs: - name: Test with pytest run: | - poetry run pytest --cov=Pyspatialml --cov-report=xml + poetry run pytest --cov-report=xml - name: "Upload Report to Codecov" uses: codecov/codecov-action@v3 diff --git a/poetry.lock b/poetry.lock index 66cc62a..3c8bdaf 100644 --- a/poetry.lock +++ b/poetry.lock @@ -677,6 +677,9 @@ files = [ {file = "coverage-7.5.3.tar.gz", hash = "sha256:04aefca5190d1dc7a53a4c1a5a7f8568811306d7a8ee231c42fb69215571944f"}, ] +[package.dependencies] +tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} + [package.extras] toml = ["tomli"] @@ -2610,6 +2613,24 @@ tomli = {version = ">=1", markers = "python_version < \"3.11\""} [package.extras] dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] +[[package]] +name = "pytest-cov" +version = "5.0.0" +description = "Pytest plugin for measuring coverage." +optional = false +python-versions = ">=3.8" +files = [ + {file = "pytest-cov-5.0.0.tar.gz", hash = "sha256:5837b58e9f6ebd335b0f8060eecce69b662415b16dc503883a02f45dfeb14857"}, + {file = "pytest_cov-5.0.0-py3-none-any.whl", hash = "sha256:4f0764a1219df53214206bf1feea4633c3b558a2925c8b59f144f682861ce652"}, +] + +[package.dependencies] +coverage = {version = ">=5.2.1", extras = ["toml"]} +pytest = ">=4.6" + +[package.extras] +testing = ["fields", "hunter", "process-tests", "pytest-xdist", "virtualenv"] + [[package]] name = "python-dateutil" version = "2.9.0.post0" @@ -3729,4 +3750,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "c8ae9c481dde40e94b138cc4e8d9008635cea1cd7cf5801091beb58337a9853a" +content-hash = "bf7c6f5381b05736028478841d632497697d24e516a232bb7cc6570223c68449" diff --git a/pyproject.toml b/pyproject.toml index 40256e0..78bea26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ black = "^24.4.2" [tool.poetry.group.test.dependencies] pytest = "^8.2.0" +pytest-cov = "^5.0.0" coverage = "^7.5.3" [build-system]