1- name : Linting and Formating checks
1+ name : Linting and Formatting Checks
22on :
3- workflow_call :
3+ workflow_call :
44
5- jobs :
6- # Run Pylint and Black formatter
7- lint_format :
8- name : Run lint and formatting checks with pylint and black
5+ jobs :
6+ # Run Pylint
7+ pylint :
8+ name : Run pylint checks
99 runs-on : ubuntu-latest
1010 strategy :
11- matrix :
12- python-version : ["3.12.6"]
11+ matrix :
12+ python-version : ["3.12.6"]
1313
1414 steps :
15- - uses : actions/checkout@v4
16- - name : ' Setup Python ${{ matrix.python-version}}'
17- uses : actions/setup-python@v3
18- with :
19- python-version : ' ${{ matrix.python-version}}'
20-
21- - name : Install dependencies
22- run : |
23- pip install -r requirements.txt
24- python -m pip install --upgrade pip
25-
26- - name : Run pylint
27- run : pylint .
28-
29- - name : Run black
30- run : black --check .
15+ - uses : actions/checkout@v4
16+ - name : " Setup Python ${{ matrix.python-version}}"
17+ uses : actions/setup-python@v3
18+ with :
19+ python-version : " ${{ matrix.python-version}}"
20+
21+ - name : Install dependencies
22+ run : |
23+ pip install -r requirements.txt
24+ python -m pip install --upgrade pip
25+
26+ - name : Run pylint
27+ run : pylint .
28+
29+ # Run Black
30+ black :
31+ name : Run black formatting checks
32+ runs-on : ubuntu-latest
33+ needs : pylint
34+ strategy :
35+ matrix :
36+ python-version : ["3.12.6"]
37+
38+ steps :
39+ - uses : actions/checkout@v4
40+ - name : " Setup Python ${{ matrix.python-version}}"
41+ uses : actions/setup-python@v3
42+ with :
43+ python-version : " ${{ matrix.python-version}}"
44+
45+ - name : Install dependencies
46+ run : |
47+ pip install -r requirements.txt
48+ python -m pip install --upgrade pip
49+
50+ - name : Run black
51+ run : black --check .
0 commit comments