Skip to content

Test 2

Test 2 #19

name: Push commit
on:
push:
pull_request:
permissions:
contents: write
jobs:
format_and_lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Black and Flake8
run: |
python -m pip install --upgrade pip
pip install black flake8
- name: Run Black
run: black -S .
- name: Commit changes
run: |
git config --global user.name 'GitHubBot'
git config --global user.email '[email protected]'
git add -u
git commit -am "Format code with black"
git push