Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,29 @@ jobs:
|| env.PERPLEXITY_API_KEY != '' }}
run: |
set +e
uv run pytest tests/llm/test_core_providers -v --asyncio-mode=auto -n auto -k "cohere or xai or mistral or cerebras or fireworks or writer or perplexity"
provider_filter="cohere or xai or mistral or cerebras or fireworks or writer or perplexity"
uv run pytest tests/llm/test_core_providers -v --asyncio-mode=auto -n auto -k "$provider_filter"
status=$?

if [ "$status" -eq 1 ]; then
echo "Retrying only failed live-provider tests once."
sleep 5
uv run pytest tests/llm/test_core_providers -v --asyncio-mode=auto --lf --lfnf=none -k "$provider_filter"
retry_status=$?
else
retry_status=$status
fi
set -e
if [ $status -eq 5 ]; then

if [ "$status" -eq 5 ]; then
echo "No tests collected; treating as success."
exit 0
fi
exit $status
if [ "$retry_status" -eq 5 ]; then
echo "Retry selected no failed tests; preserving the initial failure."
exit "$status"
fi
exit "$retry_status"
env:
INSTRUCTOR_ENV: CI
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
Expand Down
Loading
Loading