blob: 6ca60ffa9b60b60ef655c589e3757d9422a2180d (
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@v2
- uses: actions/setup-python@v1
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)
|