Skip to content

Commit 96bcee8

Browse files
morambrocopybara-github
authored andcommitted
Install Python 3.12 in macOS tests
tink-py now supports 3.12. PiperOrigin-RevId: 625337673 Change-Id: I0d66279227a824c593b214305f72a680692176f6
1 parent f0ad98b commit 96bcee8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

kokoro/macos_external/bazel/run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ if [[ -n "${KOKORO_ROOT:-}" ]]; then
2929
cd "${TINK_BASE_DIR}/tink_py"
3030
fi
3131

32-
# Make sure we use the latest Python 3.11.
32+
# Make sure we use the latest Python 3.12 available with pyenv.
3333
eval "$(pyenv init -)"
34-
pyenv install "3.11"
35-
pyenv global "3.11"
34+
pyenv install -s "3.12"
35+
pyenv global "3.12"
3636

3737
./kokoro/testutils/copy_credentials.sh "testdata" "all"
3838
./kokoro/testutils/copy_credentials.sh "examples/testdata" "gcp"

kokoro/macos_external/pip/run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ if [[ -n "${KOKORO_ROOT:-}" ]]; then
3535
cd "${TINK_BASE_DIR}/tink_py"
3636
fi
3737

38-
# Make sure we use the latest Python 3.11.
38+
# Make sure we use the latest Python 3.12 available with pyenv.
3939
eval "$(pyenv init -)"
40-
pyenv install "3.11"
41-
pyenv global "3.11"
40+
pyenv install -s "3.12"
41+
pyenv global "3.12"
4242

4343
# Sourcing required to update callers environment.
4444
source ./kokoro/testutils/install_protoc.sh "25.1"

0 commit comments

Comments
 (0)