-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from kornia/feat/cached-weights
feat: cache models weights tests
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,15 @@ on: | |
required: false | ||
type: string | ||
default: ${{ github.sha }} | ||
cache-path: | ||
required: false | ||
type: string | ||
cache-key: | ||
required: false | ||
type: string | ||
cache-restore-keys: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
tests: | ||
|
@@ -77,6 +86,14 @@ jobs: | |
python-version: '3.12' | ||
|
||
steps: | ||
- name: Restore cache | ||
if: github.event.inputs.cache-path != '' | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: ${{ inputs.cache-path }} | ||
key: ${{ inputs.cache-key }} | ||
restore-keys: ${{ inputs.cache-restore-keys }} | ||
|
||
- uses: kornia/workflows/.github/actions/[email protected] | ||
with: | ||
os: ${{ inputs.os }} | ||
|