Skip to content

Commit

Permalink
feat: cache models weights
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnv1 committed Aug 14, 2024
1 parent 30598a5 commit 8060b2c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 8060b2c

Please sign in to comment.