forked from google/Xee
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Authenticate with Earth Engine in Xee integration tests.
PiperOrigin-RevId: 580705612
- Loading branch information
Xee authors
committed
Nov 9, 2023
1 parent
c97c6f2
commit 07b8676
Showing
3 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,8 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
permissions: | ||
id-token: write # This is required for requesting the JWT. | ||
steps: | ||
- name: Cancel previous | ||
uses: styfle/[email protected] | ||
|
@@ -55,10 +57,13 @@ jobs: | |
- name: Install Xee | ||
run: | | ||
pip install -e .[tests] | ||
- uses: 'actions/checkout@v4' | ||
- id: 'auth' | ||
name: 'Authenticate to Google Cloud' | ||
uses: 'google-github-actions/auth@v1' | ||
with: | ||
service_account: ${{ secrets.SERVICE_ACCOUNT }} | ||
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} | ||
- name: Run unit tests | ||
run: | | ||
pytest xee | ||
- name: Run scripts tests | ||
# The scripts may define some of the same flags, so we run pytest in separate processes. | ||
run: | | ||
for test in examples/*_test.py; do pytest $test; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters