Skip to content

Commit 438f36e

Browse files
stefano-garzarellaShadowCurse
authored andcommitted
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 <[email protected]>
1 parent 4700eac commit 438f36e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/black.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
on:
22
push:
3+
pull_request:
34

45
jobs:
56
black:
@@ -11,4 +12,4 @@ jobs:
1112
run: pip install black
1213

1314
- name: Run black
14-
run: black . --check
15+
run: black . --check

0 commit comments

Comments
 (0)