From 7aaafc9d9bcd07483ab7296de263e8f8eacd62cb Mon Sep 17 00:00:00 2001 From: Levi Blaney Date: Sat, 24 Dec 2022 11:13:54 +0000 Subject: [PATCH] increase swap space --- .github/workflows/test.yml | 5 +++++ tests/conftest.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 427ef2124..8611b449d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -69,5 +69,10 @@ jobs: python -m pip install --upgrade pip pip install --upgrade --upgrade-strategy eager -r tests/requirements.txt + - name: Set Swap Space + uses: pierotofy/set-swap-space@master + with: + swap-size-gb: 10 + - name: Test with pytest run: pytest diff --git a/tests/conftest.py b/tests/conftest.py index 4ce8a54a5..f2668d56c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -53,7 +53,7 @@ def container(client: docker.DockerClient) -> Generator[Container, None, None]: if 'GITHUB_ACTIONS' in os.environ: run_time_args['mem_limit'] = '6g' run_time_args['mem_reservation'] = '4g' - run_time_args['memswap_limit'] = '10g' + run_time_args['memswap_limit'] = '16g' container = client.containers.run( image.id, tty=True, detach=True, volumes=volumes, privileged=True, **run_time_args