Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(ci): inline the cached LFS checkout so Plumber sees the token is not persisted

Lincoln Stein4cb6ad3d5679
diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml
index bf625220e3..f4e6b26677 100644
--- a/.github/workflows/python-tests.yml
+++ b/.github/workflows/python-tests.yml
@@ -123,11 +123,22 @@ jobs:
steps:
- name: checkout
- # https://github.com/nschloe/action-cached-lfs-checkout
- uses: nschloe/action-cached-lfs-checkout@385a8ecc719e50b8c71af6ab01a624b486b7c3bc
+ uses: actions/checkout@v6
with:
persist-credentials: false
+ - name: restore LFS cache
+ uses: actions/cache@v5
+ with:
+ path: .git/lfs
+ # Checkout leaves LFS pointer files, so their hash is the content key.
+ key: lfs-${{ hashFiles('tests/test_model_probe/stripped_models/**', 'tests/model_identification/stripped_models/**') }}
+ restore-keys: lfs-
+
+ - name: pull LFS files
+ run: git lfs pull
+ shell: bash
+
- name: check for changed python files
if: ${{ inputs.always_run != true }}
id: changed-files
@@ -239,10 +250,24 @@ jobs:
steps:
- name: checkout
if: ${{ inputs.always_run != true }}
- uses: nschloe/action-cached-lfs-checkout@385a8ecc719e50b8c71af6ab01a624b486b7c3bc
+ uses: actions/checkout@v6
with:
persist-credentials: false
+ - name: restore LFS cache
+ if: ${{ inputs.always_run != true }}
+ uses: actions/cache@v5
+ with:
+ path: .git/lfs
+ # Checkout leaves LFS pointer files, so their hash is the content key.
+ key: lfs-${{ hashFiles('tests/test_model_probe/stripped_models/**', 'tests/model_identification/stripped_models/**') }}
+ restore-keys: lfs-
+
+ - name: pull LFS files
+ if: ${{ inputs.always_run != true }}
+ run: git lfs pull
+ shell: bash
+
- name: check for changed python files
if: ${{ inputs.always_run != true }}
id: changed-files
@@ -301,10 +326,22 @@ jobs:
steps:
- name: checkout
- uses: nschloe/action-cached-lfs-checkout@385a8ecc719e50b8c71af6ab01a624b486b7c3bc
+ uses: actions/checkout@v6
with:
persist-credentials: false
+ - name: restore LFS cache
+ uses: actions/cache@v5
+ with:
+ path: .git/lfs
+ # Checkout leaves LFS pointer files, so their hash is the content key.
+ key: lfs-${{ hashFiles('tests/test_model_probe/stripped_models/**', 'tests/model_identification/stripped_models/**') }}
+ restore-keys: lfs-
+
+ - name: pull LFS files
+ run: git lfs pull
+ shell: bash
+
- name: setup uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with: