From d87ca95b7465b09e299f5e315e35b16297bebe16 Mon Sep 17 00:00:00 2001 From: Timon Pike Date: Thu, 2 Nov 2023 15:57:07 -0700 Subject: [PATCH] increase swap size --- .github/workflows/unit_tests.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 2b3bca3994..3ab1fc8b25 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -20,16 +20,16 @@ jobs: OS: ${{ matrix.os }} PYTHON: ${{ matrix.python-version }} steps: -# - name: Increase swapfile -# # Increase ubuntu's swapfile to avoid running out of resources which causes the action to terminate -# if: startsWith(matrix.os, 'ubuntu') -# run: | -# sudo swapoff -a -# sudo fallocate -l 8G /swapfile -# sudo chmod 600 /swapfile -# sudo mkswap /swapfile -# sudo swapon /swapfile -# sudo swapon --show + - name: Increase swapfile + # Increase ubuntu's swapfile to avoid running out of resources which causes the action to terminate + if: startsWith(matrix.os, 'ubuntu') + run: | + sudo swapoff -a + sudo fallocate -l 8G /swapfile + sudo chmod 600 /swapfile + sudo mkswap /swapfile + sudo swapon /swapfile + sudo swapon --show - uses: actions/checkout@v2 - name: Setup Python id: setup-python