Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache LFS objects in the tests workflow #2194

Merged
merged 6 commits into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,33 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Download reference data
run: bash .ci-helpers/download_reference_data.sh
- name: Clone tardis-sn/tardis-refdata
uses: actions/checkout@v2
with:
repository: tardis-sn/tardis-refdata
path: tardis-refdata
lfs: false

- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
working-directory: tardis-refdata

- name: Restore LFS cache
uses: actions/cache@v2
id: lfs-cache
with:
path: tardis-refdata/.git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-refdata/.lfs-assets-id') }}-v1

- name: Git LFS Pull
run: git lfs pull
working-directory: tardis-refdata
chvogl marked this conversation as resolved.
Show resolved Hide resolved
if: steps.lfs-cache.outputs.cache-hit != 'true'
chvogl marked this conversation as resolved.
Show resolved Hide resolved

- name: Git LFS Checkout
run: git lfs checkout
working-directory: tardis-refdata
if: steps.lfs-cache.outputs.cache-hit == 'true'

- name: Setup environment
uses: conda-incubator/setup-miniconda@v2
Expand Down
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Arjun Savel <[email protected]> Arjun Savel <[email protected]

Atharva Arya <[email protected]>
Atharva Arya <[email protected]> Atharva Arya <[email protected]>
Atharva Arya <[email protected]> atharva-2001 <[email protected]>
Atharva Arya <[email protected]> Atharva Arya <[email protected]>

Atharwa Kharkar <[email protected]>
Expand Down