Skip to content

Commit 9aec4db

Browse files
hugovkradarhere
andcommitted
Disable xdist for valgrind
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent b2e195a commit 9aec4db

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/test-valgrind-memory.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,10 @@ jobs:
5656
run: |
5757
# The Pillow user in the docker container is UID 1001
5858
sudo chown -R 1001 $GITHUB_WORKSPACE
59-
docker run --name pillow_container -e "PILLOW_VALGRIND_TEST=true" -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} /Pillow/depends/docker-test-valgrind-memory.sh
59+
docker run --name pillow_container \
60+
-e "PILLOW_VALGRIND_TEST=true" \
61+
-e "PYTEST_ADDOPTS=-n0" \
62+
-v $GITHUB_WORKSPACE:/Pillow \
63+
pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }} \
64+
bash -c "python3 -m pip install pytest-xdist && /Pillow/depends/docker-test-valgrind-memory.sh"
6065
sudo chown -R runner $GITHUB_WORKSPACE

.github/workflows/test-valgrind.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,9 @@ jobs:
5454
run: |
5555
# The Pillow user in the docker container is UID 1001
5656
sudo chown -R 1001 $GITHUB_WORKSPACE
57-
docker run --name pillow_container -e "PILLOW_VALGRIND_TEST=true" -v $GITHUB_WORKSPACE:/Pillow pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
57+
docker run --name pillow_container \
58+
-e "PILLOW_VALGRIND_TEST=true" \
59+
-e "PYTEST_ADDOPTS=-n0" \
60+
-v $GITHUB_WORKSPACE:/Pillow \
61+
pythonpillow/${{ matrix.docker }}:${{ matrix.dockerTag }}
5862
sudo chown -R runner $GITHUB_WORKSPACE

0 commit comments

Comments
 (0)