Skip to content

Commit

Permalink
ci: cache pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jsolaas committed Aug 28, 2024
1 parent 1fcbac3 commit 5448149
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pre-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.8"
cache: "pip"

- name: Install pre-commit
run: pip install pre-commit==3.2.2

run: python -m pip install -r pre-commit-requirements.txt
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit/
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: SKIP=trufflehog pre-commit run --all-files --verbose
1 change: 1 addition & 0 deletions pre-commit-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pre-commit==3.2.2

0 comments on commit 5448149

Please sign in to comment.