Skip to content

Commit d92751c

Browse files
committed
🧪 Cache pre-commit.com virtualenvs @ CI
1 parent 7394415 commit d92751c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/reusable-linters.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ jobs:
3434
python-version: ${{ env.PYTHON_LATEST }}
3535
cache: pip
3636
cache-dependency-path: requirements/*.txt
37+
- name: Cache pre-commit.com virtualenvs
38+
uses: actions/cache@v3
39+
with:
40+
path: ~/.cache/pre-commit
41+
key: >-
42+
${{
43+
runner.os
44+
}}-pre-commit-${{
45+
hashFiles('.pre-commit-config.yaml')
46+
}}
3747
- name: Install dependencies
3848
uses: py-actions/py-dependency-install@v4
3949
with:

0 commit comments

Comments
 (0)