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 c7284e2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bootstrap
Original file line number Diff line number Diff line change
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 c7284e2

Please sign in to comment.