Skip to content

Commit

Permalink
chore(logging): update environment tests to use python3.9 (#6554)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Aug 23, 2022
1 parent 7e00d2d commit b3ec895
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/kokoro/environment.sh
Expand Up @@ -33,7 +33,7 @@ fi
cd "${KOKORO_ARTIFACTS_DIR}/github/google-cloud-go/internal/"
git submodule add https://github.com/googleapis/env-tests-logging
cd "env-tests-logging/"
export ENV_TEST_PY_VERSION=3.7
export ENV_TEST_PY_VERSION=3.9
echo "using python version: $ENV_TEST_PY_VERSION"

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

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

Expand All @@ -85,7 +85,7 @@ fi

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

# destroy resources
Expand Down

0 comments on commit b3ec895

Please sign in to comment.