Skip to content

Commit

Permalink
Added a new job (code-quality-checks) within the GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyber-Var committed Dec 29, 2024
1 parent 31fccb7 commit d7987c8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/causal_lm_cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ env:
m_ov_link: https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2025.0.0-17709-688f0428cfc/m_openvino_toolkit_macos_12_6_2025.0.0.dev20241224_x86_64.tgz
w_ov_link: https://storage.openvinotoolkit.org/repositories/openvino/packages/nightly/2025.0.0-17709-688f0428cfc/w_openvino_toolkit_windows_2025.0.0.dev20241224_x86_64.zip
jobs:
code-quality-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for trailing whitespaces in files (excluding Markdown and hidden files)
run: git --no-pager diff --check $(git hash-object -t tree /dev/null) $(git ls-files | grep -Ev '^\.' | grep -Ev '\.md$')
- name: Prohibit non-ASCII characters in file names
run: test $(git diff --name-only --diff-filter=A -z $(git hash-object -t tree /dev/null) | LC_ALL=C tr -d '[ -~]\0' | wc -c) == 0
- name: Check for non-ASCII characters in files (excluding Markdown and hidden files), with characters ± and � allowed
run: ! git grep -n '[^ -~±�]' -- $(git ls-files | grep -vE '^\.' | grep -vE '\.md$' | grep -vE '^(tests/python_tests|tools/who_what_benchmark/(tests|whowhatbench))' | grep -v 'tools/llm_bench/llm_bench_utils/ov_model_classes.py')

cpp-multinomial-greedy_causal_lm-ubuntu:
runs-on: ubuntu-20.04-8-cores
defaults:
Expand Down

0 comments on commit d7987c8

Please sign in to comment.