25 lines
572 B
YAML
25 lines
572 B
YAML
name: Code style compliance check
|
|
on: push
|
|
|
|
jobs:
|
|
run:
|
|
name: Format
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install black
|
|
run: pip3 install black
|
|
|
|
- name: Format code
|
|
run: ./build.sh format-code "all"
|
|
|
|
- name: Commit changes
|
|
uses: joseph-henry/add-and-commit@v7
|
|
with:
|
|
author_name: github-actions
|
|
author_email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
message: 'Code style enforcement'
|
|
add: '.'
|