Merge pre-commit workflow into main

This commit is contained in:
Bruno Alla 2025-12-16 17:17:18 +00:00
parent 055c422b34
commit 7294cb3cff
2 changed files with 13 additions and 22 deletions

View File

@ -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

View File

@ -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