test(anthropic): retry integration tests on transient failures (#37697)

Enable `pytest-retry` on the `integration_tests` Make target so live API
flakes (e.g. `test_batch` timing out against `api.anthropic.com`) no
longer fail the job on first miss. Matches the existing convention in
`libs/partners/groq`.
This commit is contained in:
Mason Daugherty
2026-05-26 11:02:53 -04:00
committed by GitHub
parent 53a5ac3352
commit c7858c46d8
3 changed files with 6 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ test tests:
uv run --group test pytest -vvv $(PYTEST_EXTRA) --disable-socket --allow-unix-socket $(TEST_FILE)
integration_test integration_tests:
uv run --group test --group test_integration pytest -v --tb=short -n auto --timeout 30 $(TEST_FILE)
uv run --group test --group test_integration pytest -v --tb=short -n auto --timeout 30 --retries 3 --retry-delay 1 $(TEST_FILE)
test_watch:
uv run --group test ptw --snapshot-update --now . -- -vv $(TEST_FILE)