From 34c1a4d4693be8d43627cebe392d2e5d58319729 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 9 Jul 2024 23:08:39 -0300 Subject: [PATCH] fix: add timeout for unit tests workflows (#2613) fix: add timeout for unit tests and test CLI in Python workflow --- .github/workflows/python_test.yml | 1 + .github/workflows/typescript_test.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/python_test.yml b/.github/workflows/python_test.yml index c91ee8d74..92086e201 100644 --- a/.github/workflows/python_test.yml +++ b/.github/workflows/python_test.yml @@ -39,6 +39,7 @@ jobs: poetry env use ${{ matrix.python-version }} poetry install - name: Run unit tests + timeout-minutes: 12 run: | make unit_tests - name: Test CLI diff --git a/.github/workflows/typescript_test.yml b/.github/workflows/typescript_test.yml index 1c3df86bc..9d506973c 100644 --- a/.github/workflows/typescript_test.yml +++ b/.github/workflows/typescript_test.yml @@ -110,6 +110,7 @@ jobs: cd src/frontend npx playwright test --trace on --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --workers 2 continue-on-error: true + timeout-minutes: 12 # If the test fails, set a flag to indicate that the shard failed - name: Set failure flag