aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-03 10:30:10 -0500
committerFrederick Muriuki Muriithi2025-07-03 10:30:10 -0500
commit07bb6542d933100e40b91513c768380a15ebe0fc (patch)
treeb0474c1c9501ad87c06b54e87a842f0dc82337d0
parent0dd360c0f09dc247474b3205f425636ddf6148fc (diff)
downloadguix-bioinformatics-07bb6542d933100e40b91513c768380a15ebe0fc.tar.gz
gn-auth: Speed up tests by parallelizing them.
* Add python-pytest-xdist as a dependency * Change test invocation to allow parallelized tests
-rw-r--r--gn/packages/genenetwork.scm5
1 files changed, 3 insertions, 2 deletions
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