Skip to content

3.8 no longer supported #23

3.8 no longer supported

3.8 no longer supported #23

Workflow file for this run

# GitHub Action that uses Ruff and Black to check the code
name: Run Checks
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: # https://github.com/stefanzweifel/git-auto-commit-action#checkout-the-correct-branch
ref: ${{ github.head_ref }}
- uses: chartboost/ruff-action@v1
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: 'x64'
- run: pip install black
- run: black --check ./
- name: If needed, commit black changes to a new pull request
if: failure()
run: |
black ./
git config --global user.name autoblack_push
git config --global user.email '${GITHUB_ACTOR}@users.noreply.github.com'
git commit -am "fixup! Format Python code with psf/black push"
git push