mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 02:21:46 +04:00
17 lines
455 B
YAML
17 lines
455 B
YAML
# https://pre-commit.com
|
|
# This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file.
|
|
name: pre-commit
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [master]
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v1
|
|
- run: pip install pre-commit
|
|
- run: pre-commit --version
|
|
- run: pre-commit install
|
|
- run: pre-commit run --all-files
|