Skip to content

Commit

Permalink
revert changes, didnt fix shapely issue
Browse files Browse the repository at this point in the history
  • Loading branch information
egagli committed Jan 31, 2025
1 parent 8f50680 commit 88a25ce
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
pip install --user -r requirements.txt
pip install .
- name: PKG-TEST
env:
EARTHENGINE_TOKEN: ${{ secrets.EARTHENGINE_TOKEN }}
run: |
python -m unittest discover tests/
36 changes: 18 additions & 18 deletions tests/test_hydroclimatology.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@


# https://github.com/gee-community/ee-initialize-github-actions?tab=readme-ov-file#4-initialize-to-earth-engine-in-your-test-file
import ee
import json
import os
import google.oauth2.credentials

stored = json.loads(os.getenv("EARTHENGINE_TOKEN"))
credentials = google.oauth2.credentials.Credentials(
None,
token_uri="https://oauth2.googleapis.com/token",
client_id=stored["client_id"],
client_secret=stored["client_secret"],
refresh_token=stored["refresh_token"],
quota_project_id=stored["project"],
)

ee.Initialize(credentials=credentials)

print(ee.String("Greetings from the Earth Engine servers!").getInfo())
# import ee
# import json
# import os
# import google.oauth2.credentials

# stored = json.loads(os.getenv("EARTHENGINE_TOKEN"))
# credentials = google.oauth2.credentials.Credentials(
# None,
# token_uri="https://oauth2.googleapis.com/token",
# client_id=stored["client_id"],
# client_secret=stored["client_secret"],
# refresh_token=stored["refresh_token"],
# quota_project_id=stored["project"],
# )

# ee.Initialize(credentials=credentials)

# print(ee.String("Greetings from the Earth Engine servers!").getInfo())

0 comments on commit 88a25ce

Please sign in to comment.