Skip to content

Commit

Permalink
use -n auto
Browse files Browse the repository at this point in the history
  • Loading branch information
czoido committed Oct 25, 2024
1 parent 33adc50 commit 1cd4dca
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/osx-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,12 @@ jobs:
- name: Run Tests
run: |
NUM_CPUS=$(sysctl -n hw.ncpu)
echo "Number of CPUs available: $NUM_CPUS"
if [ "${{ matrix.test-type }}" == "unittests" ]; then
pytest test/unittests --durations=20 -n $NUM_CPUS
pytest test/unittests --durations=20 -n auto
elif [ "${{ matrix.test-type }}" == "integration" ]; then
pytest test/integration --durations=20 -n $NUM_CPUS
pytest test/integration --durations=20 -n auto
elif [ "${{ matrix.test-type }}" == "functional" ]; then
export PATH=${HOME}/Applications/CMake/3.15.7/bin:$PATH:/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin
cmake --version
pytest test/functional --durations=20 -n $NUM_CPUS
pytest test/functional --durations=20 -n auto
fi

0 comments on commit 1cd4dca

Please sign in to comment.