mirror of
https://github.com/jongracecox/anybadge.git
synced 2026-01-12 23:17:16 +01:00
30 lines
546 B
YAML
30 lines
546 B
YAML
---
|
|
|
|
name: Pre-commit hooks
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip setuptools wheel
|
|
pip install -r build-requirements.txt
|
|
pip install pre-commit
|
|
|
|
- name: Run pre-commit
|
|
run: pre-commit run --all-files
|