Skip to content

Commit a8b12c7

Browse files
authored
Replace pre-commit/action that uses outdated node version with direct install and call of pre-commit (#4849)
1 parent ec88d6f commit a8b12c7

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/hypha-ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ concurrency:
1313
group: ${{ github.head_ref || github.run_id }}
1414
cancel-in-progress: true
1515

16+
defaults:
17+
run:
18+
shell: bash
19+
1620
jobs:
1721
lint:
1822
runs-on: ubuntu-latest
@@ -23,8 +27,16 @@ jobs:
2327
with:
2428
python-version-file: ".python-version"
2529

30+
- name: Install pre-commit
31+
run: python -m pip install pre-commit
32+
33+
- uses: actions/cache@v5
34+
with:
35+
path: ~/.cache/pre-commit
36+
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
37+
2638
- name: Run pre-commit
27-
uses: pre-commit/action@v3.0.1
39+
run: pre-commit run --show-diff-on-failure --color=always --all-files
2840

2941
django-checks:
3042
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)