Commit f2266674 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Restrict memory usage by CI runs to 10 GiB

parent d6178fe3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -29,8 +29,13 @@ if [ -d test ]; then
  rm -Rf 
  if ! test -z "$TESTABLES"; then
    echo "TESTABLES: $TESTABLES"

    # Core dumps? Sure, we'll take them.
    ulimit -c unlimited

    # 10 GiB should be enough for just about anyone
    ulimit -m $(python -c 'print(1024*1024*10)')

    ${PY_EXE} -m pytest -rw --durations=10 --tb=native  -rxs $TESTABLES

    # Avoid https://github.com/pytest-dev/pytest/issues/754:
+5 −0
Original line number Diff line number Diff line
@@ -27,8 +27,13 @@ if [ -d test ]; then

  if ! test -z "$TESTABLES"; then
    echo "TESTABLES: $TESTABLES"

    # Core dumps? Sure, we'll take them.
    ulimit -c unlimited

    # 10 GiB should be enough for just about anyone
    ulimit -m $(python -c 'print(1024*1024*10)')

    # Need to set both _TEST and _CTX because doctests do not use _TEST.
    ${PY_EXE} -m pytest -rw --durations=10 --tb=native  --junitxml=pytest.xml -rxsw $TESTABLES
  fi