Files
anybadge/.github/workflows/pre_commit_check.yaml
Jon Grace-Cox 5dd8ac7fe3 chore: Add github workflows
Add github workflows for running pre-commit hooks on all files and
running pytests.
2024-12-30 07:11:12 -05:00

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