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')