diff --git a/.github/workflows/python-tests.yaml b/.github/workflows/python-tests.yaml index 5b57a61b7..26efdaf4e 100644 --- a/.github/workflows/python-tests.yaml +++ b/.github/workflows/python-tests.yaml @@ -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 --capture=no --cov=agentops --cov-report=xml env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} AGENTOPS_API_KEY: ${{ secrets.AGENTOPS_API_KEY }} diff --git a/pyproject.toml b/pyproject.toml index 07f7aab3a..8f9066d0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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