diff --git a/.github/workflows/python-package-check.yml b/.github/workflows/python-package-check.yml index 6695ed8..f8447dd 100644 --- a/.github/workflows/python-package-check.yml +++ b/.github/workflows/python-package-check.yml @@ -22,7 +22,25 @@ jobs: steps: - uses: actions/checkout@v6 with: - lfs: True + lfs: False + + - name: Create lfs file list + run: git lfs ls-files -l |cut -d' ' -f1 |sort >.git/lfs-hashes.txt + + - name: Restore lfs cache + uses: actions/cache@v4 + with: + path: .git/lfs + key: ${{ runner.os }}-lfsdata-v1-${{ hashFiles('.git/lfs-hashes.txt') }} + restore-keys: | + ${{ runner.os }}-lfsdata-v1- + ${{ runner.os }}-lfsdata + + - name: Fetch lfs objects + run: git lfs fetch --prune + + - name: Checkout LFS objects + run: git lfs checkout - name: Install uv and set up python uses: astral-sh/setup-uv@v7