ci: move formatting check to pre-commit + GitHub

This commit is contained in:
Henry Schreiner
2020-08-14 15:56:05 -04:00
parent 6d6d277ea5
commit 17c83ad78b
2 changed files with 8 additions and 17 deletions
+8
View File
@@ -7,6 +7,14 @@ on:
- 'docs/**'
jobs:
pre-commit:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0
test:
# skip branch builds on joerick/cibuildwheel, but always build `master` and pull requests
if: github.repository != 'joerick/cibuildwheel' || github.ref == 'refs/heads/master' || github.event_name == 'pull_request'