Merge pull request #28522 from blaggacao/ci/join-precommit-linters

ci: join pre-commit with linters
This commit is contained in:
Akhil Narang 2024-11-25 17:45:48 +05:30 committed by GitHub
commit bb173b189b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 26 deletions

View file

@ -96,3 +96,16 @@ jobs:
pip install pip-audit
cd ${GITHUB_WORKSPACE}
pip-audit --desc on .
precommit:
name: 'Pre-Commit'
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
- uses: pre-commit/action@v3.0.1

View file

@ -1,26 +0,0 @@
name: Pre-commit
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: precommit-frappe-${{ github.event_name }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
linter:
name: 'precommit'
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
- uses: pre-commit/action@v3.0.1