Skip to content

Commit

Permalink
cache pip and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Nov 2, 2023
1 parent 0cf1c26 commit 8ca8ebd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/testing.yml
Expand Up @@ -19,6 +19,13 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('tox.ini') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
- name: Install dependencies
run: python -m pip install tox
- name: Test
Expand All @@ -39,7 +46,9 @@ jobs:
- name: Cache packages
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
path: |
~/.cache/pre-commit
~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('tox.ini') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
Expand Down

0 comments on commit 8ca8ebd

Please sign in to comment.