diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c043c25936..317c44a8d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -573,6 +573,25 @@ jobs: ./script/test_build_components -e compile -c $component done + 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 + - name: Run pre-commit.ci lite + uses: pre-commit-ci/lite-action@v1.0.3 + if: always() + ci-status: name: CI Status runs-on: ubuntu-24.04 diff --git a/.github/workflows/pre-commit-ci-lite.yml b/.github/workflows/pre-commit-ci-lite.yml deleted file mode 100644 index 2f7cdd1176..0000000000 --- a/.github/workflows/pre-commit-ci-lite.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: pre-commit.ci lite - -on: - pull_request: - types: [labeled, opened, reopened, synchronize] - branches-ignore: - - beta - - release - -jobs: - pre-commit-ci-lite: - name: pre-commit.ci lite - runs-on: ubuntu-latest - steps: - - name: Check out code from GitHub - uses: actions/checkout@v4.2.2 - - name: Run pre-commit.ci lite - uses: pre-commit-ci/lite-action@v1.0.3 - if: always()