From 54b6884853ae4bba3a1dd8c1314781d7845abf74 Mon Sep 17 00:00:00 2001 From: danfengliu Date: Tue, 26 Jan 2021 17:03:34 +0800 Subject: [PATCH] Upgrade python to v3 in git action CI host The original python packaged: in git action host is V2, it should be upgraded to V3. Signed-off-by: danfengliu --- tests/ci/api_common_install.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/ci/api_common_install.sh b/tests/ci/api_common_install.sh index fc2fadcda..7cfa1ca97 100755 --- a/tests/ci/api_common_install.sh +++ b/tests/ci/api_common_install.sh @@ -10,7 +10,18 @@ set -e if [ -z "$1" ]; then echo no ip specified; exit 1;fi # prepare cert ... sudo ./tests/generateCerts.sh $1 -sudo apt-get install -y python-pip && sudo pip install --ignore-installed urllib3 chardet requests --upgrade + +python --version +pip -V +cat /etc/issue +cat /proc/version +sudo apt-get update -y && sudo apt-get install -y zbar-tools libzbar-dev python-zbar python3.7 +sudo rm /usr/bin/python && sudo ln -s /usr/bin/python3.7 /usr/bin/python +sudo apt-get install -y python3-pip +pip -V +sudo -H pip install --ignore-installed urllib3 chardet requests --upgrade +python --version + sudo ./tests/hostcfg.sh if [ "$2" = 'LDAP' ]; then