Skip to content

Commit

Permalink
ci: faster pip install in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
brycedrennan committed Sep 30, 2023
1 parent 0ef03d6 commit c28a5c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- master
workflow_dispatch:
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
CACHE_PATHS: |
~/.cache/huggingface
~/.cache/clip
Expand Down Expand Up @@ -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')"
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
Expand Down

0 comments on commit c28a5c0

Please sign in to comment.