Skip to content

Commit 04bd604

Browse files
committed
fix(ci): use the cpu version of torch in static analysis
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent 43f2dfc commit 04bd604

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/integration-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ jobs:
215215
run: |
216216
cd context_chat_backend
217217
pip install --upgrade pip setuptools wheel
218+
# use the cpu version of torch to not run out of space
219+
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
220+
sed -i '/torch(vision)?/d' requirements.txt
218221
pip install -r requirements.txt
219222
cp example.env .env
220223
echo "NEXTCLOUD_URL=http://localhost:8080" >> .env
@@ -466,6 +469,9 @@ jobs:
466469
run: |
467470
cd context_chat_backend
468471
pip install --upgrade pip setuptools wheel
472+
# use the cpu version of torch to not run out of space
473+
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
474+
sed -i '/torch(vision)?/d' requirements.txt
469475
pip install -r requirements.txt
470476
cp example.env .env
471477
echo "NEXTCLOUD_URL=http://localhost:8080" >> .env
@@ -771,6 +777,9 @@ jobs:
771777
run: |
772778
cd context_chat_backend
773779
pip install --upgrade pip setuptools wheel
780+
# use the cpu version of torch to not run out of space
781+
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
782+
sed -i '/torch(vision)?/d' requirements.txt
774783
pip install -r requirements.txt
775784
cp example.env .env
776785
echo "NEXTCLOUD_URL=http://localhost:8080" >> .env

0 commit comments

Comments
 (0)