We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e1710f commit fe76362Copy full SHA for fe76362
.github/workflows/build-python-package.yaml
@@ -30,10 +30,12 @@ jobs:
30
run: python -m pip install --upgrade pip pre-commit hatch
31
- name: Install dependencies
32
run: python -m pip install -r requirements.txt -r requirements_dev.txt
33
- - name: Install hooks
34
- run: pre-commit install
+ - uses: actions/cache@v4
+ with:
35
+ path: ~/.cache/pre-commit
36
+ key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
37
- name: Run pre-commit hooks
- run: pre-commit run --all-files
38
+ run: pre-commit run --show-diff-on-failure --color=always --all-files
39
- name: Build tf-pre-commit python package
40
run: hatch build
41
- name: Install tf-pre-commit package
0 commit comments