Skip to content

Commit

Permalink
increase swap space
Browse files Browse the repository at this point in the history
  • Loading branch information
shadycuz committed Dec 24, 2022
1 parent ff650ca commit 7aaafc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7aaafc9

Please sign in to comment.