Skip to content

Commit

Permalink
Merge pull request #26 from kornia/feat/cached-weights
Browse files Browse the repository at this point in the history
feat: cache models weights tests
  • Loading branch information
johnnv1 authored Aug 14, 2024
2 parents 30598a5 + 8060b2c commit 9a83cbf
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 9a83cbf

Please sign in to comment.