Merge pull request #931 from beufanet/nx-os-xcvr-interface #1128
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: | |
push: | |
# run on push only in master, develop, version specific and hotfix branches | |
branches: | |
- master | |
- develop | |
- '[0-9].[0-9]+.[0-9]+.?[0-9]?' | |
pull_request: | |
# run on branches having an open PR | |
branches: | |
- '**' | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
architecture: 'x64' | |
- name: Install pre-commit | |
run: pip install pre-commit | |
- name: Run pre-commit | |
run: pre-commit run --all-files --show-diff-on-failure |