Merge pull request #64 from automl/master #55
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 | |
on: | |
# Manually triggerable in github | |
workflow_dispatch: | |
# When a push occurs on either of these branches | |
push: | |
branches: | |
- main | |
- development | |
# When a push occurs on a PR that targets these branches | |
pull_request: | |
branches: | |
- main | |
- development | |
jobs: | |
run-all-files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install pre-commit | |
run: | | |
pip install pre-commit | |
pre-commit install | |
- name: Run pre-commit | |
run: | | |
pre-commit run --all-files |