Skip to content

Commit

Permalink
attempt to fix resource issue in github actions unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
piket committed Oct 31, 2023
1 parent df80998 commit 8c84892
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion sdk/python/tests/doctest/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8c84892

Please sign in to comment.