diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 81d789f..26359f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -84,7 +84,7 @@ jobs: pip install pytest-cov - name: Run tests run: | - pytest --cov -- test + pytest - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: diff --git a/pyproject.toml b/pyproject.toml index 5090acc..4930764 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ lint = [ "flake8", ] test = [ - "pytest", + "pytest>=9", "pytest-cov>=7", ] dev = [ @@ -63,6 +63,11 @@ multi_line_output = 5 include_trailing_comma = true use_parentheses = true +[tool.pytest] +addopts = ["--cov"] +testpaths = ["test"] +pythonpath = ["."] + [tool.coverage.run] source = ["hererocks"] patch = ["subprocess"]