diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 64c5486cf9a362d6a74442e1843d56234cdc098c..598aff5da1d20d7797b8d454fa7a72fb21d88267 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -15,4 +15,8 @@ jobs:
           python-version: ${{ matrix.python-version }}
       - run: pip install pytest mock -r requirements.txt
       - run: make schema
+      - run: pip install black
+        if: matrix.python-version != "2.7"
+      - run: make black
+        if: matrix.python-version != "2.7"
       - run: PYTHONPATH=$GITHUB_WORKSPACE py.test -m "not hw_raspberrypi and not mqtt"