Skip to content

Commit

Permalink
Include System Dependencies In Cache
Browse files Browse the repository at this point in the history
Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
  • Loading branch information
HassanAbouelela committed Sep 8, 2022
1 parent cc3d449 commit 492169a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup-python/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,20 @@ runs:

# Specify directories that require caching
- name: Python Dependency Caching
uses: actions/cache@v2
uses: actions/cache@v3
id: python_cache
with:
path: ~/.cache/pypoetry
path: |
~/.cache/pypoetry
~/.cache/py-user-base
key: "python-${{ runner.os }}-${{ env.PYTHONUSERBASE }}-\
v1.2.1-\
${{ steps.python_setup.outputs.python-version }}-${{ inputs.dev }}-${{ inputs.working_dir }}\
${{ hashFiles('./pyproject.toml', './poetry.lock') }}"

# Cache pre-commit independently of other cache
- name: Pre-commit Environment Caching
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: "precommit-${{ runner.os }}-${{ env.PRE_COMMIT_HOME }}-\
Expand Down

0 comments on commit 492169a

Please sign in to comment.