From f9ade3df4f4c7a905df51555e70d2cfb34ab0b67 Mon Sep 17 00:00:00 2001 From: "Martin K. Scherer" Date: Sun, 3 Dec 2023 19:18:55 +0100 Subject: [PATCH] [ci/test] run tests in separate processes, so crashes do not terminate the whole test run --- .azure/scripts/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.azure/scripts/test.yml b/.azure/scripts/test.yml index c67cdcc2a..79093f4f8 100644 --- a/.azure/scripts/test.yml +++ b/.azure/scripts/test.yml @@ -9,7 +9,7 @@ steps: version: 11 - script: | - python -m pip install --upgrade pytest setuptools + python -m pip install --upgrade pytest-xdist setuptools python setup.py build_ext --inplace displayName: 'Build module' @@ -24,7 +24,8 @@ steps: displayName: 'Install test' - script: | - python -m pytest -v --junit-xml=build/test/test.xml test/jpypetest --checkjni + # run tests in two workers. + python -m pytest -v -n 2 --junit-xml=build/test/test.xml test/jpypetest --checkjni displayName: 'Test JDK 11' condition: eq(variables['jpypetest.fast'], 'false')