From 740a83a9bdb25fdf0ca3bdcc187f329d1969ee07 Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Tue, 29 Mar 2022 18:13:47 +0000 Subject: [PATCH] python3Packages.dm-haiku: run tests in parallel --- pkgs/development/python-modules/dm-haiku/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/dm-haiku/default.nix b/pkgs/development/python-modules/dm-haiku/default.nix index 14ceebf0a19..55a91006b06 100644 --- a/pkgs/development/python-modules/dm-haiku/default.nix +++ b/pkgs/development/python-modules/dm-haiku/default.nix @@ -7,6 +7,7 @@ , jaxlib , jmp , lib +, pytest-xdist , pytestCheckHook , tabulate , tensorflow @@ -33,9 +34,11 @@ buildPythonPackage rec { cloudpickle dm-tree jaxlib + pytest-xdist pytestCheckHook tensorflow ]; + pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ]; pythonImportsCheck = [ "haiku"