Merge pull request #658 from quantumlib/NoureldinYosri-patch-1 #411
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
on: | |
push: | |
branches: | |
# Only check pushes to master | |
- master | |
paths: | |
# Only check formatting when python files are changed. | |
- '**/*.py' | |
pull_request: | |
# Check PRs for all branches | |
paths: | |
# Only check formatting when python files are changed. | |
- '**/*.py' | |
jobs: | |
format: | |
name: Format check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v1 | |
with: | |
python-version: '3.7' | |
architecture: 'x64' | |
- name: Install dev requirements | |
run: pip install -r dev-requirements.txt | |
- name: Format | |
run: check/format-incremental |