Add GitHub Actions #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pre-commit checks | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
precommit: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, 3.10.15] | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Running precommit checks | |
run: | | |
pip install pre-commit | |
pre-commit install-hooks | |
pre-commit run --all-files --show-diff-on-failure |