From c7284e2fe1b7fa807c167a7b5b1f534771df3098 Mon Sep 17 00:00:00 2001 From: Maksim Gelbakhiani Date: Fri, 16 Jun 2023 18:06:18 +0400 Subject: [PATCH] If clause to run on python3.10 on ubuntu-22.04 with GH actions. [Fixes] https://github.com/nspcc-dev/neofs-s3-gw/issues/780 Signed-off-by: Maksim Gelbakhiani --- bootstrap | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bootstrap b/bootstrap index 4b5880d6e..647e2e98a 100755 --- a/bootstrap +++ b/bootstrap @@ -71,8 +71,12 @@ case "$ID" in esac -# s3-tests only works on python 3.6 not newer versions of python3 -${virtualenv} --python=$(which python3.6) virtualenv +# s3-tests with nose work on python 3.6 and with pytest on python3.10 +if [ $(which python3.6) ]; then + ${virtualenv} --python=$(which python3.6) virtualenv +elif [ $(which python3.10) ]; then + ${virtualenv} --python=$(which python3.10) virtualenv +fi # avoid pip bugs ./virtualenv/bin/pip3 install --upgrade pip