Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release testing tweaks #1900

Merged
merged 3 commits into from
Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions release-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ run_tests() {
"${test_prefix}"bin/py.test "--ignore=${mod_loc}/schemas/" \
--pyargs -x ${module} -n auto --dist=loadfile
}
pipver=20.3.3 # minimum required version of pip for Python 3.10
setuptoolsver=50.0.1 # fix for "AttributeError: module 'importlib.util' has no attribute 'abc'"
pipver=20.3.4 # minimum required version of pip for Python 3.10
setuptoolsver=52.0.0
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

rm -Rf testenv? || /bin/true
Expand Down Expand Up @@ -55,8 +55,7 @@ fi

python3 -m venv testenv2
python3 -m venv testenv3
python3 -m venv testenv4
rm -Rf testenv[234]/local
rm -Rf testenv[23]/local

# Secondly we test via pip

Expand Down Expand Up @@ -89,8 +88,9 @@ rm -f lib/python-wheels/setuptools* \
&& pip install --force-reinstall -U pip==${pipver} \
&& pip install setuptools==${setuptoolsver} wheel
package_tar=$(find . -name "${package}*tar.gz")
pip install "-r${DIR}/test-requirements.txt"
pip install "-r${DIR}/test-requirements.txt" udocker
pip install "${package_tar}${extras}"
udocker install
mkdir out
tar --extract --directory=out -z -f ${package}*.tar.gz
pushd out/${package}*
Expand Down