From 8a52f623a9df1246e07088599ed2ce600af7479b Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Thu, 18 Mar 2021 16:57:57 +0100 Subject: [PATCH] Parallelize pytest runs --- setup.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.cfg b/setup.cfg index e596877db..dc29b0f09 100644 --- a/setup.cfg +++ b/setup.cfg @@ -40,6 +40,7 @@ exclude = tests testing = pytest pytest-rerunfailures + pytest-xdist coverage = pytest-cov [options.entry_points] @@ -48,6 +49,9 @@ console_scripts = pip-sync = piptools.scripts.sync:cli [tool:pytest] +addopts = + # `pytest-xdist`: + --numprocesses=auto norecursedirs = .* build dist venv test_data piptools/_compat/* testpaths = tests piptools filterwarnings =