summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGangzheng Tong <tonggangzheng@gmail.com>2025-09-22 15:28:22 -0700
committerGitHub <noreply@github.com>2025-09-22 15:28:22 -0700
commitbd24cc271c5d151dbaa7e4da674cbc219aef8153 (patch)
tree717bdd7e99b190fd6e17156d49ba200a2946a2d0
parentc991ad46ebffe3cd6aa4ac8eb1d88c17bf2f6a6f (diff)
Reduce the maxprocesses to 3 for slangpy test (#8502)
-rw-r--r--.github/workflows/ci-slang-test.yml8
1 files changed, 2 insertions, 6 deletions
diff --git a/.github/workflows/ci-slang-test.yml b/.github/workflows/ci-slang-test.yml
index 04d11bdde..7cd3acb60 100644
--- a/.github/workflows/ci-slang-test.yml
+++ b/.github/workflows/ci-slang-test.yml
@@ -185,7 +185,7 @@ jobs:
python -m pip install --verbose slangpy --user
# Get site packages directory
- SITE_PACKAGES=$(python -c "import slangpy; import os; print(os.path.dirname(os.path.dirname(slangpy.__file__)))")
+ SITE_PACKAGES=$(python -c "import slangpy; import os; print(os.path.dirname(os.path.dirname(slangpy.__file__)))" | tail -n 1)
echo "Site packages directory: $SITE_PACKAGES"
echo "bin_dir location: $bin_dir"
echo "lib_dir location: $lib_dir"
@@ -206,12 +206,8 @@ jobs:
python -m pip install -r requirements-dev.txt --user
python -m pip install pytest-github-actions-annotate-failures --user
python -m pip install pytest-xdist --user
- else
- echo "Skipping Python package installation on self-hosted runner"
- # TODO: remove this once we have pytest-xdist installed on all self-hosted runners
- python -m pip install pytest-xdist --user
fi
echo "Running pytest on slangpy tests..."
export PYTHONPATH="$SITE_PACKAGES"
- python -m pytest "$SITE_PACKAGES/slangpy/tests" -ra -n auto --maxprocesses=4
+ python -m pytest "$SITE_PACKAGES/slangpy/tests" -ra -n auto --maxprocesses=3