update for latest c2d api #191
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: auto_lint | |
on: | |
push: | |
paths: | |
- '**.py' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Lint code | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 | |
flake8 . --show-source --statistics --max-line-length 120 | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "[skip ci] Apply formatting changes" |