tests.yml
576 Bytes
name: Tests
on:
push:
branches:
- master
- v*
pull_request:
branches:
- master
jobs:
formatting:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: '3.7'
architecture: 'x64'
- name: Install pre-commit
run: python -m pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all
- name: Display format changes
run: git diff --exit-code
if: always()