Merge pull request #8 from antmicro/backticks #40
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: "Code Quality Checks" | |
on: | |
push: | |
pull_request: | |
jobs: | |
check-code-quality: | |
name: "Code Quality Checks" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Install yapf | |
run: | | |
pip install yapf==0.32.0 | |
- name: Yapf code formatting checks | |
run: | | |
yapf -ipr protoplaster/ | |
test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; } |