Skip to content
Merged
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
17 changes: 14 additions & 3 deletions .github/workflows/run-branch-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,21 @@ jobs:
steps.final-status.outputs.cache_hit != 'true' &&
steps.check-collection.outputs.has_collection_errors != 'true'
run: |
echo "🧪 Running tests with ${{ inputs.parallel_workers }} workers..."
# Determine worker count based on input or runner type
WORKERS="${{ inputs.parallel_workers }}"
if [ -z "$WORKERS" ]; then
# Auto-detect based on runner type
if echo '${{ inputs.runs_on }}' | grep -q "multithreaded"; then
WORKERS="6"
else
WORKERS="1"
fi
fi
echo "🧪 Running tests with $WORKERS workers..."

PARALLEL_FLAG=""
if [ "${{ inputs.parallel_workers }}" != "1" ]; then
PARALLEL_FLAG="-n ${{ inputs.parallel_workers }}"
if [ "$WORKERS" != "1" ]; then
PARALLEL_FLAG="-n $WORKERS"
fi

# Run pytest and capture exit code
Expand Down