From 7294cb3cff96c73ebc5f19f1e01b27e16b53b0a7 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Tue, 16 Dec 2025 17:17:18 +0000 Subject: [PATCH] Merge pre-commit workflow into main --- .github/workflows/main.yml | 13 +++++++++++++ .github/workflows/pre-commit.yml | 22 ---------------------- 2 files changed, 13 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8ae01735c..4ac258cfe 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 a1b678919..000000000 --- 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