Skip to content

Seperate Method for Each Test Case #17

Seperate Method for Each Test Case

Seperate Method for Each Test Case #17

Workflow file for this run

name: Autopep8
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
autopep8:
name: Autopep8
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Environment
run: |
chmod +x ./.github/workflows/setup.sh && ./.github/workflows/setup.sh
pip install autopep8 pre-commit
- name: Format code with autopep8
run: |
autopep8 --in-place ./hw2_debugging.py
git diff ./hw2_debugging.py
if [ -n "$(git diff ./hw2_debugging.py)" ]; then
echo "Code is not formatted. Please run autopep8 locally."
exit 1
fi
env:
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}