-
Notifications
You must be signed in to change notification settings - Fork 51
39 lines (37 loc) · 1.12 KB
/
BlackFormat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Fusion - Black Format Validation
on:
workflow_dispatch: {}
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
jobs:
blackFormatChecker:
name: Black Format Validation
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Python Setup
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Setup Isort
run: python3 -m pip install isort
- name: Validate Isort Formatting
run: python3 ./exporter/SynthesisFusionAddin/tools/verifyIsortFormatting.py
id: isort-format-validation
continue-on-error: true
- name: Check Isort Formatting Validation
run: |
if [ ${{ steps.isort-format-validation.outcome }} == "success" ]; then
echo "Isort Formatting Validation Passed"
else
echo "Isort Formatting Validation Failed"
exit 1
fi
- name: Validate Black Formatting
uses: psf/black@stable
with:
options: "--check"
src: "./exporter/SynthesisFusionAddin/"