diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index e8f072f..3361b38 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -24,7 +24,7 @@ env: BACKEND_GCF: https://${{ vars.GCP_REGION }}-${{ secrets.GCP_PROJECT_ID }}.${{ vars.GCP_FUNCTION_URI_SUFFIX }} jobs: - build-and-test: + build_and_test: runs-on: ubuntu-latest # Use the matrix strategy to run build and test steps for both backend_gcf and ui_cr @@ -58,19 +58,11 @@ jobs: head -n 3 $GOOGLE_APPLICATION_CREDENTIALS shell: bash - # Cache Python dependencies to speed up subsequent runs - - name: Cache pip - uses: actions/cache@v3 - with: - path: ~/.cache/pip - key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} - restore-keys: | - ${{ runner.os }}-pip- - - name: Set up Python 3.10 - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: "3.10" + cache: 'pip' # caching pip dependencies - name: Install dependencies run: |