From 073749902ca339c6f1ec27f4c7ace44980367084 Mon Sep 17 00:00:00 2001 From: eberrigan Date: Wed, 6 Nov 2024 09:57:55 -0800 Subject: [PATCH] add setup for google cloud credentials to ci --- .github/workflows/build-and-test-pip.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-pip.yml b/.github/workflows/build-and-test-pip.yml index 9ceccc3..f5ba372 100644 --- a/.github/workflows/build-and-test-pip.yml +++ b/.github/workflows/build-and-test-pip.yml @@ -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: @@ -34,4 +40,7 @@ jobs: - name: Run tests run: | - pytest tests/ \ No newline at end of file + pytest tests/ + + - name: Clean up credentials + run: rm -f $GOOGLE_APPLICATION_CREDENTIALS \ No newline at end of file