Add timeout to tests

This commit is contained in:
Martin Raiber 2025-06-29 19:32:53 +02:00
parent 1aeaa77fac
commit b0c7b988f7
3 changed files with 4 additions and 3 deletions

View File

@ -89,7 +89,7 @@ jobs:
if: matrix.benchmark == 0
with:
emoji: false
custom-arguments: -p no:sugar --benchmark-skip test
custom-arguments: -p no:sugar --benchmark-skip test --timeout=300
- uses: pavelzw/pytest-action@v2
if: matrix.benchmark == 1

View File

@ -74,7 +74,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
with:
emoji: false
custom-arguments: -p no:sugar --benchmark-skip test
custom-arguments: -p no:sugar --benchmark-skip test --timeout=300
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')

View File

@ -3,4 +3,5 @@ pytest
pytest-sugar
boto3-stubs[s3]
requests
pytest-benchmark
pytest-benchmark
pytest-timeout