File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 7878 pip uninstall -y cwltool
7979 pip install -r" ${SCRIPT_DIRECTORY} /mypy-requirements.txt"
8080 CWLTOOL_USE_MYPYC=1 MYPYPATH=" ${SCRIPT_DIRECTORY} /mypy-stubs" pip install " ${SCRIPT_DIRECTORY} " -r" ${SCRIPT_DIRECTORY} /requirements.txt"
81- pip install ' cwltest>=2.5' pytest-cov pytest-xdist
81+ pip install ' cwltest>=2.5' pytest-cov pytest-xdist> =3.2.0 psutil
8282fi
8383
8484# Set conformance test filename
@@ -121,7 +121,7 @@ if (( "${#exclusions[*]}" > 0 )); then
121121fi
122122
123123# Build command
124- TEST_COMMAND=" python -m pytest ${CONFORMANCE_TEST} -n auto -rs --junit-xml=${TMP_DIR} /cwltool_conf_${VERSION} _${GIT_TARGET} _${CONTAINER} .xml -o junit_suite_name=cwltool_$( echo " ${CWLTOOL_OPTIONS} " | tr " [:blank:]-" _) "
124+ TEST_COMMAND=" python -m pytest ${CONFORMANCE_TEST} -n logical --dist worksteal -rs --junit-xml=${TMP_DIR} /cwltool_conf_${VERSION} _${GIT_TARGET} _${CONTAINER} .xml -o junit_suite_name=cwltool_$( echo " ${CWLTOOL_OPTIONS} " | tr " [:blank:]-" _) "
125125if [[ -n " ${EXCLUDE} " ]] ; then
126126 TEST_COMMAND=" ${TEST_COMMAND} --cwl-exclude ${EXCLUDE} "
127127fi
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ run_tests() {
2323 mod_loc=$( pip show ${package} |
2424 grep ^Location | awk ' {print $2}' ) /${module}
2525 " ${test_prefix} " bin/py.test " --ignore=${mod_loc} /schemas/" \
26- --pyargs -x ${module} -n auto --dist=loadfile
26+ --pyargs -x ${module} -n logical --dist=worksteal
2727}
2828pipver=23.1 # minimum required version of pip for Python 3.12
2929setuptoolsver=67.6.1 # required for Python 3.12
Original file line number Diff line number Diff line change 11bagit>=1.6.4,<1.9
22pytest>= 6.2,< 8.2
3- pytest-xdist
3+ pytest-xdist>=3.2.0 # for the worksteal scheduler
4+ psutil # enhances pytest-xdist to allow "-n logical"
45pytest-httpserver
56pytest-retry;python_version>'3.9'
67mock>=2.0.0
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ envlist =
1111skip_missing_interpreters = True
1212
1313[pytest]
14- addopts =--ignore cwltool/schemas -n auto
14+ addopts =--ignore cwltool/schemas -n logical --dist worksteal
1515testpaths = tests
1616
1717[gh-actions]
You can’t perform that action at this time.
0 commit comments