Skip to content

Commit 53de520

Browse files
authored
Update pipeline.yaml
1 parent 98dd587 commit 53de520

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/pipeline.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,28 @@ jobs:
2222
- name: Install Pip dependencies
2323
run: pip install -r requirements.txt
2424

25+
# Reformat the code with black and isort (make fmt)
2526
- name: Reformat code (make fmt)
2627
run: make fmt
2728

28-
- name: Lint code (make lint)
29-
run: make lint
30-
29+
# Commit any changes made by reformatting before running lint
3130
- name: Commit and push changes if reformatted
3231
run: |
3332
git config --local user.email "actions@github.com"
3433
git config --local user.name "GitHub Actions"
3534
git diff --exit-code || (git add . && git commit -m "Reformatted code with black" && git push)
3635
36+
# Lint the code after reformatting and committing changes
37+
- name: Lint code (make lint)
38+
run: make lint
39+
40+
# Run tests
3741
- name: Run Tests
3842
run: pytest
3943

44+
# Run the main pipeline
4045
- name: Run Pipeline
4146
run: python pipeline.py
4247

4348

49+

0 commit comments

Comments
 (0)