aboutsummaryrefslogtreecommitdiffstats
path: root/Pipfile
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-12-26 18:40:11 +0000
committerGravatar GitHub <[email protected]>2021-12-26 18:40:11 +0000
commite5c07edcb90018ac14787048e87f13c1384faf9f (patch)
treec2a2f478e2a27093c18fef5db49a645e87d9ee41 /Pipfile
parentExcluded the snekbox/config_pb2.py from coverage (#130) (diff)
parentCI: disable setup-python action on self-hosted runner (diff)
Merge pull request #127 from python-discord/feat/nsjail/102/cgroupv2
Diffstat (limited to 'Pipfile')
-rw-r--r--Pipfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Pipfile b/Pipfile
index e814d6b..c630530 100644
--- a/Pipfile
+++ b/Pipfile
@@ -40,9 +40,10 @@ precommit = "pre-commit install"
# Testing
report = "coverage report"
# Fix ownership of the coverage file even if tests fail & preserve exit code
+# Install numpy because a test checks if it's importable
test = """
docker-compose run --entrypoint /bin/bash --rm snekbox -c \
- 'coverage run -m unittest; e=$?; chown --reference=. .coverage; exit $e'
+ 'env PYTHONUSERBASE=/snekbox/user_base pip install numpy && coverage run -m unittest; e=$?; chown --reference=. .coverage; exit $e'
"""
# Docker