diff --git a/.github/workflows/hypha-ci.yml b/.github/workflows/hypha-ci.yml index db89f1d14a..cad26279b5 100644 --- a/.github/workflows/hypha-ci.yml +++ b/.github/workflows/hypha-ci.yml @@ -13,6 +13,10 @@ concurrency: group: ${{ github.head_ref || github.run_id }} cancel-in-progress: true +defaults: + run: + shell: bash + jobs: lint: runs-on: ubuntu-latest @@ -23,8 +27,16 @@ jobs: with: python-version-file: ".python-version" + - name: Install pre-commit + run: python -m pip install pre-commit + + - uses: actions/cache@v5 + with: + path: ~/.cache/pre-commit + key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} + - name: Run pre-commit - uses: pre-commit/action@v3.0.1 + run: pre-commit run --show-diff-on-failure --color=always --all-files django-checks: runs-on: ubuntu-latest