updated py_checks.yml , workflow to be triggered (#17956)
* updated py_checks , trying to trigger workflow * trail trigger * undone changes * changes after PR * corrected flake for logger , constants .py * fixed flake8 test on modified files * fixed flake8 test on modified files * fixed logger.py to trigger workflow * Update .github/workflows/py_checks.yml Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com> * Update .github/workflows/py_checks.yml Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com> --------- Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com> Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
This commit is contained in:
committed by
GitHub
parent
42c93a70d4
commit
0b708b5eff
13
.github/workflows/py_checks.yml
vendored
13
.github/workflows/py_checks.yml
vendored
@@ -151,3 +151,16 @@ jobs:
|
||||
- name: Run Bandit
|
||||
run: python -m bandit -r ./ -f screen
|
||||
working-directory: src/bindings/python/src/compatibility/openvino
|
||||
|
||||
# layer_tests Flake code-style
|
||||
- name: Run flake8 on python tests in openvino/tests/layer_tests
|
||||
run: |
|
||||
modified_files=$(git diff --name-only)
|
||||
for file in $modified_files; do
|
||||
if [[ $file == "openvino/tests/layer_tests/"* ]]; then
|
||||
if [[ -f "$file" ]]; then
|
||||
python -m flake8 "$file" --config= ./setup.cfg
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user