Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
ci(lfs): attempt at cache lfs to reduce bandwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
MindTooth committed Jul 20, 2021
1 parent 0733322 commit 3e5bc94
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,21 @@ jobs:
COVERAGE_FILE: ${{ github.workspace }}/.coverage.${{ matrix.python-version }}-${{ matrix.tests }}
steps:
- uses: actions/checkout@v2
- name: Create LFS file list
run: |
git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v2
id: lfs-cache
with:
lfs: true
path: .git/lfs
# The cache of lfs should be the same on all jobs. Not sure
# what happens when an updated has occured and every job tries
# to upload a new versions.
# key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
key: lfs-${{ hashFiles('.lfs-assets-id') }}-v1
- name: Git LFS Pull
run: git lfs pull
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit 3e5bc94

Please sign in to comment.