Skip to content

Commit

Permalink
increase swap size
Browse files Browse the repository at this point in the history
  • Loading branch information
piket committed Nov 2, 2023
1 parent f249a81 commit d87ca95
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d87ca95

Please sign in to comment.