Skip to content

Update python-rust-build.yml to support python 3.11 #216

Update python-rust-build.yml to support python 3.11

Update python-rust-build.yml to support python 3.11 #216

Workflow file for this run

name: black
on:
push:
pull_request:
workflow_dispatch:
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black codespell
- name: Check with black
run: black --preview .
- name: Commit files
run: |
git config --local user.name ${{ github.actor }}
git add .
git commit --allow-empty -m "${{ github.event.commits[0].message }} - formmated with black"
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.head_ref || github.ref_name }}
force: true