From 8c8489227443611ca6024d9c2c1e8888fe2299db Mon Sep 17 00:00:00 2001 From: Timon Pike Date: Tue, 31 Oct 2023 10:10:44 -0700 Subject: [PATCH] attempt to fix resource issue in github actions unit tests --- .github/workflows/unit_tests.yml | 10 ++++++++++ sdk/python/tests/doctest/test_all.py | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 9971139e0b..3ab1fc8b25 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -20,6 +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 - uses: actions/checkout@v2 - name: Setup Python id: setup-python diff --git a/sdk/python/tests/doctest/test_all.py b/sdk/python/tests/doctest/test_all.py index 08b40d7aeb..4f4c5bcc22 100644 --- a/sdk/python/tests/doctest/test_all.py +++ b/sdk/python/tests/doctest/test_all.py @@ -54,7 +54,6 @@ def teardown_feature_store(): shutil.rmtree("project", ignore_errors=True) -@unittest.skip(reason="Does not appear to test anything") def test_docstrings(): """Runs all docstring tests.