Skip to content

Commit d728d10

Browse files
committed
Update CI jobs to use Python 3.7
1 parent 92938c3 commit d728d10

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.grabl/automation.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ build:
6666
image: vaticle-ubuntu-21.04
6767
dependencies: [ build, build-dependency ]
6868
command: |
69+
pyenv install 3.7.12
70+
pyenv global 3.7.12
71+
sudo unlink /usr/bin/python3
72+
sudo ln -s $(which python3) /usr/bin/python3
73+
sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.7.12/lib/python3.7/site-packages/lsb_release.py
74+
6975
export DEPLOY_PIP_USERNAME=$REPO_VATICLE_USERNAME
7076
export DEPLOY_PIP_PASSWORD=$REPO_VATICLE_PASSWORD
7177
bazel run --define version=$(git rev-parse HEAD) //grammar/python:deploy-pip -- snapshot
@@ -78,8 +84,9 @@ release:
7884
deploy-github:
7985
image: vaticle-ubuntu-21.04
8086
command: |
81-
pyenv install -s 3.6.10
82-
pyenv global 3.6.10 system
87+
pyenv install -s 3.7.12
88+
pyenv global 3.7.12 system
89+
pip3 install -U pip
8390
pip3 install certifi
8491
export NOTES_CREATE_TOKEN=$REPO_GITHUB_TOKEN
8592
bazel run @vaticle_dependencies//tool/release/notes:create -- $GRABL_OWNER $GRABL_REPO $GRABL_COMMIT $(cat VERSION) ./RELEASE_TEMPLATE.md
@@ -103,6 +110,9 @@ release:
103110
image: vaticle-ubuntu-21.04
104111
dependencies: [ deploy-github ]
105112
command: |
113+
pyenv install -s 3.7.12
114+
pyenv global 3.7.12 system
115+
pip3 install -U pip
106116
export DEPLOY_PIP_USERNAME=$REPO_PYPI_USERNAME
107117
export DEPLOY_PIP_PASSWORD=$REPO_PYPI_PASSWORD
108118
bazel run --define version=$(cat VERSION) //grammar/python:deploy-pip -- release

0 commit comments

Comments
 (0)