Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/sdk_generation_mistralai_sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
speakeasy_version: latest
target: mistralai-sdk
secrets:
github_access_token: ${{ secrets.SPEAKEASY_WORKFLOW_GITHUB_PAT }}
github_access_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
13 changes: 9 additions & 4 deletions scripts/run_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,26 @@ exclude_files=(
"examples/mistral/mcp_servers/stdio_server.py"
"examples/mistral/agents/async_conversation_run_stream.py"
"examples/mistral/agents/async_conversation_run_mcp.py"
"examples/mistral/agents/async_conversation_run_mcp_remote.py"
"examples/mistral/agents/async_conversation_run_mcp_remote.py"
)

# Check if the no-extra-dep flag is set
if [ "$NO_EXTRA_DEP" = true ]; then
# Add more files to the exclude list
exclude_files+=(
"examples/mistral/agents/async_conversation_run_mcp_remote.py"
"examples/mistral/agents/async_conversation_run_stream.py"
"examples/mistral/agents/async_conversation_run.py"
"examples/mistral/agents/async_multi_turn_conversation.py"
)
fi

failed=0

echo "Skipping scripts"
for file in "${exclude_files[@]}"; do
echo "$file"
done

# Function to run a test with retries
run_test_with_retries() {
local file="$1"
Expand All @@ -64,8 +69,8 @@ run_test_with_retries() {
echo "Running $file (attempt $attempt/$RETRY_COUNT)"

# Run the script and capture both exit status and error output
local current_output=$(python3 "$file" 2>&1)
local exit_code=$?
current_output=$(python3 "$file" 2>&1)
exit_code=$?

if [ $exit_code -eq 0 ]; then
echo "Success"
Expand Down