Skip to content

Commit

Permalink
ci: cache pre-commit for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yajo committed Nov 9, 2023
1 parent cd3af75 commit fb50bab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ jobs:
- name: Install poetry
run: pipx install poetry

# Some tests exercise pre-commit; cache it
- name: Restore pre-commit cache
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key:
test-pre-commit-${{ runner.os }}-${{ hashFiles('poetry.lock',
'**/.pre-commit-config.yaml.jinja') }}

# Install specific alternate python versions required by hooks
- name: Install python
uses: actions/setup-python@v4
Expand Down

0 comments on commit fb50bab

Please sign in to comment.