From 8475968634eb0b4229efeff59d71eeffadae9a73 Mon Sep 17 00:00:00 2001 From: Doug Latornell Date: Sat, 15 Feb 2025 15:18:03 -0800 Subject: [PATCH] Add pytest configuration to pyproject.toml Include pytest minimum version and the `tests/` path in pyproject.toml. This is done to avoid collection of the dependency `env/src/sogcommand/SOGcommand/tests/` directory in the GHA pytest-with-coverage workflow. --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 54d3364..5b6029c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,13 @@ bloomcast = "bloomcast.main:main" ensemble = "bloomcast.ensemble:Ensemble" +[tool.pytest.ini_options] +minversion = "6.0" +testpaths = [ + "tests", +] + + [tool.coverage.run] branch = true source = [ "bloomcast", "tests"]