Skip to content

Commit

Permalink
Added basic git based code checks(Updated) openvinotoolkit#663
Browse files Browse the repository at this point in the history
  • Loading branch information
rishik-ashili committed Nov 13, 2024
1 parent 126327f commit 67cd466
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/causal_lm_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ jobs:
steps:
- name: Check for incorrect line endings
run: |
git grep -n '[^ -~]' -- ':(exclude)model_api/python/README.md'
- name: Check formatting with dos2unix
git grep -n '[^ -~]' -- ':(exclude)README.md'
- name: Check for CRLF line endings
run: |
dos2unix .github/actions/*
if git grep -Iq $'\r' .; then
echo "Files with CRLF line endings found."
exit 1
fi
- name: Verify no unexpected files
run: |
git diff --name-only --diff-filter=A
Expand Down

0 comments on commit 67cd466

Please sign in to comment.