From 3d45d9dc2cee905363733c5de15223684a7adf98 Mon Sep 17 00:00:00 2001 From: Achal Shah Date: Thu, 17 Jun 2021 16:01:01 -0700 Subject: [PATCH] Run python unit tests in parallel Signed-off-by: Achal Shah --- Makefile | 2 +- sdk/python/setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e1911a9315..475d729e9e 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ install-python: python -m pip install -e sdk/python -U --use-deprecated=legacy-resolver test-python: - FEAST_TELEMETRY=False pytest --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests + FEAST_TELEMETRY=False pytest -n 4 --cov=./ --cov-report=xml --verbose --color=yes sdk/python/tests format-python: # Sort diff --git a/sdk/python/setup.py b/sdk/python/setup.py index c198e4ff75..293e6804e7 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -87,6 +87,7 @@ "urllib3>=1.25.4", "pytest==6.0.0", "pytest-cov", + "pytest-xdist", "pytest-lazy-fixture==0.6.3", "pytest-timeout==1.4.2", "pytest-ordering==0.6.*",