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 78
78
pip uninstall -y cwltool
79
79
pip install -r" ${SCRIPT_DIRECTORY} /mypy-requirements.txt"
80
80
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
82
82
fi
83
83
84
84
# Set conformance test filename
@@ -121,7 +121,7 @@ if (( "${#exclusions[*]}" > 0 )); then
121
121
fi
122
122
123
123
# 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:]-" _) "
125
125
if [[ -n " ${EXCLUDE} " ]] ; then
126
126
TEST_COMMAND=" ${TEST_COMMAND} --cwl-exclude ${EXCLUDE} "
127
127
fi
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ run_tests() {
23
23
mod_loc=$( pip show ${package} |
24
24
grep ^Location | awk ' {print $2}' ) /${module}
25
25
" ${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
27
27
}
28
28
pipver=23.1 # minimum required version of pip for Python 3.12
29
29
setuptoolsver=67.6.1 # required for Python 3.12
Original file line number Diff line number Diff line change 1
1
bagit>=1.6.4,<1.9
2
2
pytest>= 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"
4
5
pytest-httpserver
5
6
pytest-retry;python_version>'3.9'
6
7
mock>=2.0.0
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ envlist =
11
11
skip_missing_interpreters = True
12
12
13
13
[pytest]
14
- addopts =--ignore cwltool/schemas -n auto
14
+ addopts =--ignore cwltool/schemas -n logical --dist worksteal
15
15
testpaths = tests
16
16
17
17
[gh-actions]
You can’t perform that action at this time.
0 commit comments