Skip to content

how do you test the earthengine functions in test suit ? #1341

Answered by giswqs
12rambau asked this question in Q&A
Discussion options

You must be logged in to vote

Find the Earth Engine credentials file on your computer.

Windows: C:\Users\USERNAME\.config\earthengine\credentials
Linux: /home/USERNAME/.config/earthengine/credentials
MacOS: /Users/USERNAME/.config/earthengine/credentials

Open the credentials file and copy its content. On the GitHub Actions page, create a new secret with the name EARTHENGINE_TOKEN, and the value of the copied content.

In your code, using geemap.ee_initialize() or geemap.Map() will trigger the Earth Engine authentication. Never use ee.Authenticate() or ee.Initialize() in CD/CI.

For more info about the geemap.ee_initialize(), see https://geemap.org/common/#geemap.common.ee_initialize

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@12rambau
Comment options

12rambau Nov 22, 2022
Maintainer Author

Answer selected by giswqs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants