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 Nov 1, 2023
1 parent 68f4584 commit c73fe61
Showing 1 changed file with 10 additions and 0 deletions.
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 15G /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

0 comments on commit c73fe61

Please sign in to comment.