summaryrefslogtreecommitdiff
path: root/.github/workflows/black.yml
blob: ff250367bc0d5b22d2dc1a45c059cffce0c07248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
on: [ push, pull_request ]

jobs:
  python-black:
    runs-on: ubuntu-20.04
    steps:
      - name: Checkout the repo
        uses: actions/checkout@v3
      - uses: actions/setup-python@v4
        with:
           python-version: '3.x'
      - run: pip install black
      - run: black test/
      - run: git diff --exit-code || (echo "Please run black to reformat Python files" && false)