Add Black to the CI

This commit is contained in:
Rodolphe Bréard 2023-04-30 16:20:09 +02:00
parent b7291a2bd4
commit 1fadcde028

View file

@ -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 .