Actually add github action

This commit is contained in:
Adam Johnson 2021-04-05 11:12:09 +01:00
parent bec120aa2d
commit 7c1ee48f7f
2 changed files with 25 additions and 0 deletions

24
.github/workflows/pre-commit.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: pre-commit
on:
push:
branches:
- main
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: pre-commit/action@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}

1
.gitignore vendored
View File

@ -15,6 +15,7 @@
MANIFEST
coverage.*
!.github
!.gitignore
!.pre-commit-config.yaml
!.travis.yml