fix: add timeout for unit tests workflows (#2613)

fix: add timeout for unit tests and test CLI in Python workflow
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-07-09 23:08:39 -03:00 committed by GitHub
commit 34c1a4d469
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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