Skip to content

Commit

Permalink
If clause to run on python3.10 on ubuntu-22.04 with GH actions.
Browse files Browse the repository at this point in the history
[Fixes] nspcc-dev/neofs-s3-gw#780

Signed-off-by: Maksim Gelbakhiani <max@nspcc.ru>
  • Loading branch information
Maksim Gelbakhiani committed Aug 24, 2023
1 parent 7e8e339 commit 823a871
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ case "$ID" in
done

if [ -n "$missing" ]; then
echo "$0: Missing required packages: ${missing}." 1>&2
echo "$0: Missing required packages: ${missing}." 1>&2
sudo pacman -S $missing
fi
;;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 823a871

Please sign in to comment.