python3Packages.optax: run tests in parallel

This commit is contained in:
Samuel Ainsworth 2022-03-29 18:14:04 +00:00 committed by Frederik Rietdijk
parent 6fa30f6855
commit 4570907282

View file

@ -6,6 +6,7 @@
, jaxlib
, lib
, numpy
, pytest-xdist
, pytestCheckHook
}:
@ -32,8 +33,10 @@ buildPythonPackage rec {
checkInputs = [
dm-haiku
pytest-xdist
pytestCheckHook
];
pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
pythonImportsCheck = [
"optax"