27 lines
485 B
YAML
27 lines
485 B
YAML
name: pre-commit
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
precommit:
|
|
runs-on: ubuntu-latest
|
|
container: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python 3.12
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install pre-commit
|
|
run: |
|
|
pip install pre-commit
|
|
|
|
- name: Run pre-commit hooks
|
|
run: pre-commit
|