Add pre-commit

This commit is contained in:
Gabriel Augendre 2022-09-27 23:56:46 +02:00
parent 5146c2044a
commit b4a3d10887
2 changed files with 16 additions and 0 deletions

15
.github/workflows/pre-commit.yaml vendored Normal file
View file

@ -0,0 +1,15 @@
name: pre-commit
on:
pull_request:
push:
branches:
- master
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3

View file

@ -8,6 +8,7 @@ on:
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
needs: pre-commit
runs-on: ubuntu-latest
steps:
- name: Log in to Docker Hub