Skip to content

Commit

Permalink
add setup for google cloud credentials to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Nov 6, 2024
1 parent 95db597 commit 0737499
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build-and-test-pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Google Cloud credentials
env:
GOOGLE_APPLICATION_CREDENTIALS: ${{ runner.temp }}/gcloud-key.json
run: |
echo "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_JSON }}" > $GOOGLE_APPLICATION_CREDENTIALS
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -34,4 +40,7 @@ jobs:
- name: Run tests
run: |
pytest tests/
pytest tests/
- name: Clean up credentials
run: rm -f $GOOGLE_APPLICATION_CREDENTIALS

0 comments on commit 0737499

Please sign in to comment.