mirror of
https://github.com/rust-vmm/rust-vmm-ci.git
synced 2026-08-05 03:08:31 +00:00
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 <sgarzare@redhat.com>
16 lines
230 B
YAML
16 lines
230 B
YAML
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
black:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install black
|
|
run: pip install black
|
|
|
|
- name: Run black
|
|
run: black . --check
|