Skip to content

Commit

Permalink
prevent workflow timeouts when it should just complete
Browse files Browse the repository at this point in the history
Signed-off-by: Teo <[email protected]>
  • Loading branch information
teocns committed Dec 30, 2024
1 parent 0bf2b58 commit 374ec12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Run tests with coverage
timeout-minutes: 10
run: |
uv run -m pytest -x --cov --cov-report=xml
uv run -m pytest tests/ -v --cov=agentops --cov-report=xml
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AGENTOPS_API_KEY: ${{ secrets.AGENTOPS_API_KEY }}
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ test_paths = [
]
addopts = "--tb=short -p no:warnings"
pythonpath = ["."]
faulthandler_timeout = 60 # Dump traceback after 20 seconds if tests hang
timeout = 300 # Global timeout for tests
faulthandler_timeout = 30 # Reduced from 60
timeout = 60 # Reduced from 300
disable_socket = true # Add this to prevent hanging on socket cleanup

[tool.ruff]
line-length = 120
Expand Down

0 comments on commit 374ec12

Please sign in to comment.