Skip to content

Commit

Permalink
Add linting to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Feb 29, 2024
1 parent da7f96c commit e6338d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/uvm_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ jobs:
run: |
cd verify/uvm-python
make lint BUS_TYPE=APB
cnt=$(grep -c "Error" "verify/uvm-python/sim/lint.log")
if ! [[ $cnt ]]; then cnt=0; fi
if [[ $cnt -eq 1 ]]; then exit 0; fi
exit 2
cnt=$(grep -c "Warning" "verify/uvm-python/sim/lint.log")
if ! [[ $cnt ]]; then cnt=0; fi
if [[ $cnt -eq 1 ]]; then exit 0; fi
exit 2
- name: Upload lint results
if: failure()
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit e6338d3

Please sign in to comment.