From bdd4ef9c269b0bde2dc61f6c4f823cc96b1e2439 Mon Sep 17 00:00:00 2001 From: cidrblock Date: Mon, 12 Oct 2020 11:59:40 -0700 Subject: [PATCH] Add job for black --- .github/workflows/black.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/black.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000..9a489e3 --- /dev/null +++ b/.github/workflows/black.yml @@ -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 \ No newline at end of file