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
-
I am working on a lib that is heavily relying on earth engine API (as yours) and I would like to test my function in my CD/CI both locally and remotely. Would you mind explaining how it works ? |
Beta Was this translation helpful? Give feedback.
-
Find the Earth Engine credentials file on your computer.
Open the credentials file and copy its content. On the GitHub Actions page, create a new secret with the name In your code, using For more info about the |
Beta Was this translation helpful? Give feedback.
Find the Earth Engine credentials file on your computer.
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()
orgeemap.Map()
will trigger the Earth Engine authentication. Never useee.Authenticate()
oree.Initialize()
in CD/CI.For more info about the
geemap.ee_initialize()
, see https://geemap.org/common/#geemap.common.ee_initialize