From 438f36e242c4655f0d097f96001ad7f852c44bf5 Mon Sep 17 00:00:00 2001 From: Stefano Garzarella Date: Mon, 2 Sep 2024 14:48:02 +0200 Subject: [PATCH] github/workflows: run black also on pull requests It's happening quite often to have CI broken on the main branch because we only run `black` on merges, to prevent these problems, let's run `black` or PR as well. Signed-off-by: Stefano Garzarella --- .github/workflows/black.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml index 0aaee32..1a4c285 100644 --- a/.github/workflows/black.yaml +++ b/.github/workflows/black.yaml @@ -1,5 +1,6 @@ on: push: + pull_request: jobs: black: @@ -11,4 +12,4 @@ jobs: run: pip install black - name: Run black - run: black . --check \ No newline at end of file + run: black . --check