From 2e196ab85efbc21e1aba98f1044cecbd1c246243 Mon Sep 17 00:00:00 2001 From: Ballard Date: Fri, 2 Feb 2024 13:24:03 -0500 Subject: [PATCH] chore: modified PR condition and updated action --- .github/workflows/precommit.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/precommit.yaml b/.github/workflows/precommit.yaml index 42ddc356..4bcace61 100644 --- a/.github/workflows/precommit.yaml +++ b/.github/workflows/precommit.yaml @@ -4,8 +4,17 @@ on: push: branches: [main, develop, 127-fix-precommit-conditions] pull_request: + branches: [main, develop] jobs: + install-dev-tools: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: dev env setup + uses: ./.github/actions/dev-env-setup + - run: yarn install --frozen-lockfile + working-directory: ./client pre-commit: needs: install-dev-tools runs-on: ubuntu-latest @@ -30,4 +39,5 @@ jobs: path: | ./.pre-commit-cache key: pre-commit-${{ env.PY }}-${{ hashFiles('.pre-commit-config.yaml') }}-v3 - - run: pre-commit run --all-files + - run: pip install -r requirements.txt + - uses: pre-commit/action@v3.0.0