@@ -11,12 +11,11 @@ module=cwltool
11
11
if [ " $GITHUB_ACTIONS " = " true" ]; then
12
12
# We are running as a GH Action
13
13
repo=${GITHUB_SERVER_URL} /${GITHUB_REPOSITORY} .git
14
- HEAD=${GITHUB_SHA }
14
+ HEAD=${GITHUB_REF }
15
15
else
16
16
repo=https://github.com/common-workflow-language/cwltool.git
17
17
HEAD=$( git rev-parse HEAD)
18
18
fi
19
-
20
19
test_prefix=" "
21
20
run_tests () {
22
21
local mod_loc
@@ -25,22 +24,21 @@ run_tests() {
25
24
" ${test_prefix} " bin/py.test " --ignore=${mod_loc} /schemas/" \
26
25
--pyargs -x ${module} -n auto --dist=loadfile
27
26
}
28
- pipver=7.0.2 # minimum required version of pip
29
- setuptoolsver=24.2.0 # required to generate correct metadata for
30
- # python_requires
27
+ pipver=20.3b1 # minimum required version of pip for Python 3.9
28
+ setuptoolsver=41.1.0 # required for Python 3.9
31
29
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null && pwd ) "
32
30
33
31
rm -Rf testenv? || /bin/true
34
32
35
33
36
34
if [ " ${RELEASE_SKIP} " != " head" ]
37
35
then
38
- virtualenv testenv1 -p python3
36
+ python3 -m venv testenv_1
39
37
# First we test the head
40
38
# shellcheck source=/dev/null
41
39
source testenv1/bin/activate
42
40
rm -Rf testenv1/local
43
- rm testenv1/lib/python-wheels/setuptools* \
41
+ rm -f testenv1/lib/python-wheels/setuptools* \
44
42
&& pip install --force-reinstall -U pip==${pipver} \
45
43
&& pip install setuptools==${setuptoolsver} wheel
46
44
make install-dep
55
53
test_prefix=../ run_tests; popd
56
54
fi
57
55
58
- virtualenv testenv2 -p python3
59
- virtualenv testenv3 -p python3
60
- virtualenv testenv4 -p python3
56
+ python3 -m venv testenv2
57
+ python3 -m venv testenv3
58
+ python3 -m venv testenv4
61
59
rm -Rf testenv[234]/local
62
60
63
61
# Secondly we test via pip
64
62
65
63
cd testenv2
66
64
# shellcheck source=/dev/null
67
65
source bin/activate
68
- rm lib/python-wheels/setuptools* \
66
+ rm -f lib/python-wheels/setuptools* \
69
67
&& pip install --force-reinstall -U pip==${pipver} \
70
68
&& pip install setuptools==${setuptoolsver} wheel
71
69
pip install -e " git+${repo} @${HEAD} #egg=${package} " # [deps]
@@ -85,7 +83,7 @@ run_tests
85
83
cd ../testenv3/
86
84
# shellcheck source=/dev/null
87
85
source bin/activate
88
- rm lib/python-wheels/setuptools* \
86
+ rm -f lib/python-wheels/setuptools* \
89
87
&& pip install --force-reinstall -U pip==${pipver} \
90
88
&& pip install setuptools==${setuptoolsver} wheel
91
89
package_tar=$( find . -name " ${package} *tar.gz" )
0 commit comments