diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a300241..8b126eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,9 +26,12 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install . --group=tests + python -m pip list - name: Run tests - run: pytest -ra --cov + run: | + coverage run -m pytest + coverage report - name: Coveralls parallel uses: coverallsapp/github-action@v2 diff --git a/pyproject.toml b/pyproject.toml index 19eda95..ce155cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,7 @@ dependencies = [ [dependency-groups] tests = [ "memory-profiler", + "pytest>=9.0.3", "pytest-benchmark", "pytest-cov", ] @@ -61,6 +62,15 @@ packages.find.include = [ [tool.setuptools.dynamic] version = {attr = "tika.__version__"} -[tool.coverage.run] -source = [ "tika" ] -branch = true +[tool.pytest] +minversion = "9.0" +addopts = [ "-ra", "--showlocals", "--strict-config", "--strict-markers" ] +log_level = "INFO" +xfail_strict = true +testpaths = [ "tests" ] + +[tool.coverage] +run.source = [ "tika" ] +run.branch = true +report.skip_covered = true +report.show_missing = true