Update python-rust-build.yml to support python 3.11 #216
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: 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 | |