From 703fb6e331b769ecf24bd87cec656c24e126ae91 Mon Sep 17 00:00:00 2001 From: Bryce Date: Fri, 29 Sep 2023 22:08:41 -0700 Subject: [PATCH] ci: faster pip install in github actions --- .github/workflows/ci.yaml | 5 +++-- requirements-dev.txt | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a57dc57f..efaa250c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,7 @@ on: - master workflow_dispatch: env: + PIP_DISABLE_PIP_VERSION_CHECK: 1 CACHE_PATHS: | ~/.cache/huggingface ~/.cache/clip @@ -68,8 +69,8 @@ jobs: cache-dependency-path: requirements-dev.txt - name: Install dependencies run: | - python -m pip install --disable-pip-version-check -r requirements-dev.txt - python -m pip install --disable-pip-version-check . + python -m pip install torch==1.13.1+cpu -f https://download.pytorch.org/whl/torch_stable.html + python -m pip install -r requirements-dev.txt . - name: Get current date id: date run: echo "::set-output name=curmonth::$(date +'%Y-%m')" diff --git a/requirements-dev.txt b/requirements-dev.txt index 9dc9b497..9aae3737 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,3 @@ -# # This file is autogenerated by pip-compile with Python 3.10 # by the following command: #