diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 00457a53d3..f09d48dd83 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,19 @@ on: pull_request: jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - uses: actions/setup-python@v6 + with: + python-version: "3.10" + + - uses: pre-commit/action@v3.0.1 + tests: name: Python ${{ matrix.python-version }} runs-on: ubuntu-24.04 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index a1b6789191..0000000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: pre-commit - -on: - push: - branches: - - main - pull_request: - -jobs: - pre-commit: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v6 - with: - fetch-depth: 0 - - - uses: actions/setup-python@v6 - with: - python-version: "3.10" - - - uses: pre-commit/action@v3.0.1