Skip to content

updated pep8 action

updated pep8 action #9

Workflow file for this run

name: Fix PEP 8 Style
on:
pull_request:
branches: [ main ]
jobs:
fix_pep8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install autopep8
run: pip install --upgrade autopep8
- name: Fix PEP 8 style violations
run: autopep8 --in-place --recursive ./fedot_ind ./tests
- uses: actions/github-script@v6
script: |

Check failure on line 21 in .github/workflows/pep8_action.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pep8_action.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
git diff --quiet ./fedot_ind ./tests # Only check for changes in relevant files
if [ $? -eq 0 ]; then
echo "No PEP 8 style changes detected."
exit 0
fi
git add .
git commit -m "Fix PEP 8 style violations"
target_branch=${{ github.event.pull_request.head.ref }}
git push origin $target_branch
${{ secrets.PEP8_TOKEN }}