From 9e6ff65850a4e58344d25604110764ca7861be41 Mon Sep 17 00:00:00 2001 From: Benedikt Fuchs Date: Mon, 9 Oct 2023 12:51:21 +0200 Subject: [PATCH] use torch cpu on cicd --- .github/workflows/ci.yml | 7 ++----- .github/workflows/publish-docs.yml | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e5dd862e..ce30e78f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.8 - - name: Cleanup Disk Space - run: | - sudo swapoff -a - sudo rm -f /swapfile - sudo apt clean + - name: Install Torch cpu + run: pip install torch --index-url https://download.pytorch.org/whl/cpu - name: Install Flair dependencies run: pip install -e . - name: Install unittest dependencies diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 5c83adc85..24a424adb 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -18,6 +18,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ env.python-version }} + - name: Install Torch cpu + run: pip install torch --index-url https://download.pytorch.org/whl/cpu - name: Install Flair dependencies run: pip install -e . - name: Install unittest dependencies