Skip to content

Commit

Permalink
[ci/test] run tests in separate processes, so crashes do not terminat…
Browse files Browse the repository at this point in the history
…e the whole test run
  • Loading branch information
marscher committed Dec 3, 2023
1 parent 544884b commit f9ade3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .azure/scripts/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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')

Expand Down

0 comments on commit f9ade3d

Please sign in to comment.