File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,28 @@ jobs:
22
22
- name : Install Pip dependencies
23
23
run : pip install -r requirements.txt
24
24
25
+ # Reformat the code with black and isort (make fmt)
25
26
- name : Reformat code (make fmt)
26
27
run : make fmt
27
28
28
- - name : Lint code (make lint)
29
- run : make lint
30
-
29
+ # Commit any changes made by reformatting before running lint
31
30
- name : Commit and push changes if reformatted
32
31
run : |
33
32
git config --local user.email "actions@github.com"
34
33
git config --local user.name "GitHub Actions"
35
34
git diff --exit-code || (git add . && git commit -m "Reformatted code with black" && git push)
36
35
36
+ # Lint the code after reformatting and committing changes
37
+ - name : Lint code (make lint)
38
+ run : make lint
39
+
40
+ # Run tests
37
41
- name : Run Tests
38
42
run : pytest
39
43
44
+ # Run the main pipeline
40
45
- name : Run Pipeline
41
46
run : python pipeline.py
42
47
43
48
49
+
You can’t perform that action at this time.
0 commit comments