Skip to content

Commit

Permalink
use 2 nworkers
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuanzhuang committed May 3, 2024
1 parent 2eb2ad0 commit af8fd6a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,13 @@ jobs:
export MKL_NUM_THREADS=1
# only set physical cores for the multiprocessing jobs
nworkers=$(python -c "import psutil; print(psutil.cpu_count(logical=False))")
echo "Using $nworkers workers"
# nworkers=$(python -c "import psutil; print(psutil.cpu_count(logical=False))")
# echo "Using $nworkers workers"

# export PYTEST_XDIST_AUTO_NUM_WORKERS=$nworkers
cat /proc/cpuinfo
export PYTEST_XDIST_AUTO_NUM_WORKERS=2

export PYTEST_XDIST_AUTO_NUM_WORKERS=$nworkers
PYTEST_FLAGS="--disable-pytest-warnings --durations=50"
if [ ${{ matrix.codecov }} = "true" ]; then
PYTEST_FLAGS="${PYTEST_FLAGS} --cov-config=.coveragerc --cov=MDAnalysis --cov-report=xml"
Expand Down

0 comments on commit af8fd6a

Please sign in to comment.