Skip to content

Commit

Permalink
Manual caching
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed May 7, 2024
1 parent 8f068a2 commit 4653fa7
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions template-files/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,24 @@ inputs:
runs:
using: composite
steps:
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ~/.cache/pip
# invalidate the cache anytime a workflow changes
key: ${{ hashFiles('.github/workflows/*') }}

- run: ls -lah ~/.cache/pip/http-v2/*/*/*/*/*
shell: bash

- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.11'
cache: pip
cache-dependency-path: ${{ github.action_path }}/requirements.txt

- run: pip cache info
shell: bash

- run: ls -lah ~/.cache/pip/http-v2/*/*/*/*/*
shell: bash

- name: install dependencies
shell: bash
Expand Down

0 comments on commit 4653fa7

Please sign in to comment.