From 1fadcde028e899b5fa0bde1fe570623a245fe309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 30 Apr 2023 16:20:09 +0200 Subject: [PATCH] Add Black to the CI --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77aca6f..9f57284 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,3 +75,16 @@ jobs: steps: - uses: actions/checkout@v3 - uses: EmbarkStudios/cargo-deny-action@v1 + black: + name: Black + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Apt update + run: sudo apt update + - name: Install Python + run: sudo apt install -y python3 + - name: Install Black + run: sudo apt install -y black + - name: Check Pyhton code format using Black + run: black --check .