From 72f8fde7efd335664155b8db4360335882c45f90 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Thu, 12 Oct 2023 16:19:48 -0700 Subject: [PATCH] Run pytests in parallel on multiple CPU cores using pytest-xdist for speed --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f352a83d..cdf8f284 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,6 +79,7 @@ test = [ "freezegun >= 1.2.0", "factory-boy >= 3.2.1", "trio >= 0.22.0", + "pytest-xdist", ] dev = [ "khoj-assistant[test]", @@ -111,7 +112,7 @@ warn_unused_ignores = false line-length = 120 [tool.pytest.ini_options] -addopts = "--strict-markers" +addopts = "--strict-markers -n 4" markers = [ "chatquality: Evaluate chatbot capabilities and quality", ]