From 07bb6542d933100e40b91513c768380a15ebe0fc Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 3 Jul 2025 10:30:10 -0500 Subject: gn-auth: Speed up tests by parallelizing them. * Add python-pytest-xdist as a dependency * Change test invocation to allow parallelized tests --- gn/packages/genenetwork.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gn') diff --git a/gn/packages/genenetwork.scm b/gn/packages/genenetwork.scm index bec4cd0..a7bbc0c 100644 --- a/gn/packages/genenetwork.scm +++ b/gn/packages/genenetwork.scm @@ -553,14 +553,15 @@ storage.") (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? - (invoke "pytest" "-k" "unit_test"))))))) + (invoke "pytest" "-m" "unit_test" "-n" "auto"))))))) (native-inputs (list python-hypothesis python-mypy python-mypy-extensions python-pylint python-pytest - python-pytest-mock)) + python-pytest-mock + python-pytest-xdist)) (propagated-inputs (list gn-libs gunicorn -- cgit v1.2.3