Skip to content

Commit 15ce957

Browse files
committed
Lower parallelism in pybind11 test preparation
1 parent c767ac0 commit 15ce957

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mx.graalpython/downstream_tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def downstream_test_pybind11(graalpy):
111111
run([graalpy, '-m', 'venv', str(venv)])
112112
run_in_venv(venv, ['pip', 'install', 'pytest'])
113113
run_in_venv(venv, ['cmake', '-S', '.', '-B', 'build', '-DPYBIND11_WERROR=ON'], cwd=src)
114-
run_in_venv(venv, ['cmake', '--build', 'build', '--parallel'], cwd=src)
114+
# GitHub actions tend to OOM here
115+
parallel_arg = ['--parallel'] if "GITHUB_ACTIONS" not in os.environ else []
116+
run_in_venv(venv, ['cmake', '--build', 'build', *parallel_arg], cwd=src)
115117
env = os.environ.copy()
116118
env['PYTHONPATH'] = 'build/tests'
117119
run_in_venv(venv, ['pytest', '-v', '--tb=short', 'tests'], cwd=src, env=env)

0 commit comments

Comments
 (0)