Skip to content

Commit

Permalink
Merge pull request #92 from fitbeard/feat/use_cache
Browse files Browse the repository at this point in the history
chore: add lint cache
  • Loading branch information
fitbeard authored Jul 31, 2023
2 parents b77c68a + 6747951 commit 8892e58
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,15 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4

- name: Get Python info
id: python_info
run: echo info=$(python -VV | sha256sum | cut -d' ' -f1) >> $GITHUB_OUTPUT

- name: Create pre-commit cache
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ steps.python_info.outputs.info }}|${{ hashFiles('.pre-commit-config.yaml') }}

- name: Setup pre-commit
uses: pre-commit/action@v3.0.0

0 comments on commit 8892e58

Please sign in to comment.