diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3f471a6..22577dc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -54,7 +54,7 @@ jobs: uses: actions/cache@v4 with: path: .venv - key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + key: venv-${{ runner.os }}-${{ matrix.python }}-${{ hashFiles('**/poetry.lock') }} - name: Install dependencies if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' run: poetry install --no-interaction --no-root diff --git a/poetry.lock b/poetry.lock index 281fd92..8ce2a26 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "accessible-pygments" @@ -912,6 +912,9 @@ files = [ {file = "coverage-7.5.4.tar.gz", hash = "sha256:a44963520b069e12789d0faea4e9fdb1e410cdc4aab89d94f7f55cbb7fef0353"}, ] +[package.dependencies] +tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} + [package.extras] toml = ["tomli"] @@ -4767,6 +4770,29 @@ type = "legacy" url = "https://pypi.org/simple" reference = "pypi-public" +[[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.source] +type = "legacy" +url = "https://pypi.org/simple" +reference = "pypi-public" + [[package]] name = "pytest-timeout" version = "2.3.1" @@ -6849,4 +6875,4 @@ reference = "pypi-public" [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "54aa0ed32091b362cf6a80a71e5f00e19e36843da7d1af53e87129f2fd1cc64a" +content-hash = "06bc5029968b88d7fe502b3b58f86448d969f7818b62b50d159ab24206bc7d66" diff --git a/pyproject.toml b/pyproject.toml index 107774a..09638c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,6 +61,7 @@ pytest = "^8.2.2" [tool.poetry.dev-dependencies] pytest = ">=6.0" pytest-timeout = "^2.3.1" +pytest-cov = "^5.0.0" tox = ">=3.20.1" pre-commit = ">=2.17.0" bump2version = "*"