diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf585c995d..d341b93aab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -499,15 +499,21 @@ jobs: pre-commit-ci-lite: name: pre-commit.ci lite runs-on: ubuntu-latest + needs: + - common if: github.event_name == 'pull_request' && github.base_ref != 'beta' && github.base_ref != 'release' steps: - name: Check out code from GitHub uses: actions/checkout@v4.2.2 + - name: Restore Python + uses: ./.github/actions/restore-python + with: + python-version: ${{ env.DEFAULT_PYTHON }} + cache-key: ${{ needs.common.outputs.cache-key }} - uses: pre-commit/action@v3.0.1 env: SKIP: pylint,clang-tidy-hash,yamllint - - name: Run pre-commit.ci lite - uses: pre-commit-ci/lite-action@v1.1.0 + - uses: pre-commit-ci/lite-action@v1.1.0 if: always() ci-status: