Skip to content

Commit

Permalink
Cache precommit on Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Nov 9, 2022
1 parent 2d6b177 commit d7c76e0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: '.pre-commit-config.yaml'
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Install dependencies
run: pip install pre-commit
run: pip install -U pre-commit
- name: Run pre-commit
run: pre-commit run --all-files

Expand Down

0 comments on commit d7c76e0

Please sign in to comment.