Add job for black
parent
7e1e66587d
commit
bdd4ef9c26
|
@ -0,0 +1,24 @@
|
||||||
|
name: Check formatting with the latest black
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
jobs:
|
||||||
|
black:
|
||||||
|
name: Black (formatting)
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: ansible_collections/ansible/utils
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
|
||||||
|
- name: Install Black
|
||||||
|
run: pip install black
|
||||||
|
|
||||||
|
- name: Run black --check
|
||||||
|
run: black --check ansible_collections/ansible/utils
|
Loading…
Reference in New Issue