ci: faster pip install in github actions

This commit is contained in:
Bryce 2023-09-29 22:08:41 -07:00 committed by Bryce Drennan
parent 2273c9144d
commit 703fb6e331
2 changed files with 3 additions and 3 deletions

View File

@ -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')"

View File

@ -1,4 +1,3 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#