Skip to content

Commit b3ec895

Browse files
chore(logging): update environment tests to use python3.9 (#6554)
1 parent 7e00d2d commit b3ec895

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/kokoro/environment.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fi
3333
cd "${KOKORO_ARTIFACTS_DIR}/github/google-cloud-go/internal/"
3434
git submodule add https://github.com/googleapis/env-tests-logging
3535
cd "env-tests-logging/"
36-
export ENV_TEST_PY_VERSION=3.7
36+
export ENV_TEST_PY_VERSION=3.9
3737
echo "using python version: $ENV_TEST_PY_VERSION"
3838

3939
# run tests from git tag golang-envtest-pin when available
@@ -65,7 +65,7 @@ gcloud config set compute/zone us-central1-b
6565
gcloud auth configure-docker -q
6666

6767
# create a unique id for this run
68-
UUID=$(python -c 'import uuid; print(uuid.uuid1())' | head -c 7)
68+
UUID=$(python3 -c 'import uuid; print(uuid.uuid1())' | head -c 7)
6969
export ENVCTL_ID=ci-$UUID
7070
echo $ENVCTL_ID
7171

@@ -85,7 +85,7 @@ fi
8585

8686
# Run the environment test for the specified GCP service
8787
set +e
88-
python3.7 -m nox --session "tests(language='go', platform='$ENVIRONMENT')"
88+
python3 -m nox --session "tests(language='go', platform='$ENVIRONMENT')"
8989
TEST_STATUS_CODE=$?
9090

9191
# destroy resources

0 commit comments

Comments
 (0)