From 55acb43fdeb69ba331f3e5babe1902e679cc173c Mon Sep 17 00:00:00 2001 From: Uri Granta Date: Tue, 28 May 2024 14:38:50 +0100 Subject: [PATCH] Increase swap file size for doc deploy --- .github/workflows/develop-deploy.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/develop-deploy.yaml b/.github/workflows/develop-deploy.yaml index ced1326c4c..42ee72ffc5 100644 --- a/.github/workflows/develop-deploy.yaml +++ b/.github/workflows/develop-deploy.yaml @@ -44,6 +44,16 @@ jobs: - uses: actions/setup-python@v2 with: python-version: "3.10" + - name: increase swap size + shell: bash + run: | + export SWAP_FILE=$(swapon --show=NAME | tail -n 1) + sudo swapoff $SWAP_FILE + sudo rm $SWAP_FILE + sudo fallocate -l 8192M $SWAP_FILE + sudo chmod 600 $SWAP_FILE + sudo mkswap $SWAP_FILE + sudo swapon $SWAP_FILE - run: | pip install --upgrade pip pip install .[qhsri] -r notebooks/requirements.txt -c notebooks/constraints.txt