Merge pull request #14086 from danfengliu/upgrade-to-python3-in-CI-host

Upgrade python to v3 in git action CI host
This commit is contained in:
danfengliu 2021-01-27 18:03:35 +08:00 committed by GitHub
commit 5c9342a338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -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