Skip to content

Commit fe76362

Browse files
committed
updated github workflow
Signed-off-by: Dalwar Hossain <5631766+dalwar23@users.noreply.github.com>
1 parent 2e1710f commit fe76362

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/build-python-package.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ jobs:
3030
run: python -m pip install --upgrade pip pre-commit hatch
3131
- name: Install dependencies
3232
run: python -m pip install -r requirements.txt -r requirements_dev.txt
33-
- name: Install hooks
34-
run: pre-commit install
33+
- uses: actions/cache@v4
34+
with:
35+
path: ~/.cache/pre-commit
36+
key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
3537
- name: Run pre-commit hooks
36-
run: pre-commit run --all-files
38+
run: pre-commit run --show-diff-on-failure --color=always --all-files
3739
- name: Build tf-pre-commit python package
3840
run: hatch build
3941
- name: Install tf-pre-commit package

0 commit comments

Comments
 (0)