diff --git a/.github/workflows/causal_lm_cpp.yml b/.github/workflows/causal_lm_cpp.yml index 4aad3d4bc3..eac573ff7a 100644 --- a/.github/workflows/causal_lm_cpp.yml +++ b/.github/workflows/causal_lm_cpp.yml @@ -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: