From 4cd6bb0379e5afe3fb9941a338a1d7ab89f8ca0d Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Thu, 3 Oct 2024 20:07:55 -0400 Subject: [PATCH] fix(.github): Add base_ref as key for pytype cache and prevent tests from running after first fail Signed-off-by: Diwank Singh Tomer --- .github/workflows/test-agents-api-pr.yml | 2 +- .github/workflows/typecheck-agents-api-pr.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-agents-api-pr.yml b/.github/workflows/test-agents-api-pr.yml index 654711dad..b0f815634 100644 --- a/.github/workflows/test-agents-api-pr.yml +++ b/.github/workflows/test-agents-api-pr.yml @@ -41,7 +41,7 @@ jobs: - name: Run tests run: | cd agents-api - poetry run poe test + poetry run poe test --fail-limit 1 concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/typecheck-agents-api-pr.yml b/.github/workflows/typecheck-agents-api-pr.yml index 884ef3311..513390883 100644 --- a/.github/workflows/typecheck-agents-api-pr.yml +++ b/.github/workflows/typecheck-agents-api-pr.yml @@ -37,7 +37,7 @@ jobs: uses: actions/cache@v4 with: path: agents-api/.pytype - key: ${{ runner.os }}-agents-api-pytype- + key: ${{ runner.os }}-agents-api-pytype-${{ github.base_ref }} restore-keys: | ${{ runner.os }}-agents-api-pytype-