From fa103b7dde8e0638bb8839e1f56f0095fd4fc3b9 Mon Sep 17 00:00:00 2001 From: Jason Graffius Date: Fri, 6 Sep 2024 19:58:13 -0400 Subject: [PATCH] Add action to check Python formatting with black (#177) --- .github/workflows/verify-pull-request.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/verify-pull-request.yml b/.github/workflows/verify-pull-request.yml index b7464a5..da4ea56 100644 --- a/.github/workflows/verify-pull-request.yml +++ b/.github/workflows/verify-pull-request.yml @@ -17,3 +17,12 @@ jobs: repository-cache: true - run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV - run: bazel test ... + check-formatting: + name: "Check Python formatting" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: psf/black@stable + with: + options: "--check --verbose" + version: "24.8.0"