I forgor #44
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: Style Reformatting | |
on: push | |
jobs: | |
style: | |
name: Style | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install Requirements | |
run: python -m pip install -r requirements-test.txt | |
- name: Run Black | |
run: python -m black . | |
- name: Run Isort | |
run: python -m isort . | |
- name: Run Ruff | |
run: python -m ruff --fix . | |
- name: Commit Changes | |
if: ${{ success() }} | |
run: | | |
git config --local committer.email "[email protected]" | |
git config --local committer.name "GitHub" | |
git config --local author.email "${{ github.actor }}@users.noreply.github.com" | |
git config --local author.name "{{ github.actor }}" | |
git add -A | |
git commit -m "Style Reformatting" | |
git push "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:${GITHUB_REF#refs/heads/} | |
continue-on-error: true |