Merge branch 'add-ci' of https://github.com/IsaacCheng9/boruvka-algor… #2
Workflow file for this run
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: Format | |
on: [push] | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.12.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Python code formatting with Black | |
uses: lgeiger/black-action@v1.0.1 | |
- name: Commit changes made by Black | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Format Python code with Black | |
- name: Switch to current branch | |
run: git checkout ${{ env.BRANCH }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3.1.4 | |
with: | |
python-version: ${{ matrix.python-version }} |