From 844ddd0896d6a68688dbe48088054acc953a4a9d Mon Sep 17 00:00:00 2001 From: Nate Schmitz Date: Thu, 23 Jan 2025 09:40:48 -0800 Subject: [PATCH] publish-to-pypi: Initialize EE with an explicit project in the smoke tests. PiperOrigin-RevId: 718903879 --- .github/workflows/publish-to-pypi.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index afbe24074..d743d84a6 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -37,7 +37,8 @@ jobs: ]; path = os.environ["GOOGLE_APPLICATION_CREDENTIALS"]; info = json.load(open(path)); - ee.Initialize(identity_pool.Credentials.from_info(info).with_scopes(scopes)); + credentials = identity_pool.Credentials.from_info(info).with_scopes(scopes); + ee.Initialize(credentials, project=credentials.project_number); print(ee.Image("srtm90_v4").getInfo())'