From 03cb6eeb9f843a0ada63960f79f94ac9f4829346 Mon Sep 17 00:00:00 2001 From: Shubha Rajan Date: Mon, 12 Dec 2022 12:35:25 -0800 Subject: [PATCH] move setup python step --- .github/workflows/sample-tests.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sample-tests.yaml b/.github/workflows/sample-tests.yaml index ecf129cc..5f4fa7c1 100644 --- a/.github/workflows/sample-tests.yaml +++ b/.github/workflows/sample-tests.yaml @@ -130,10 +130,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} repository: ${{ github.event.pull_request.head.repo.full_name }} - - name: Setup Python - uses: actions/setup-python@v4 - with: - python-version: '3.9' + - name: 'Authenticate to Google Cloud' id: 'auth' @@ -141,7 +138,12 @@ jobs: with: workload_identity_provider: ${{ secrets.PROVIDER_NAME }} service_account: ${{ secrets.SERVICE_ACCOUNT }} - + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + - name: 'Set up Cloud SDK' uses: 'google-github-actions/setup-gcloud@v1.0.1' - name: Get Secrets