Run nGraph code style check in the root of repo (#1573)

This commit is contained in:
Alexander Zhogov 2020-07-31 12:19:12 +03:00 committed by GitHub
parent 25cadb661b
commit 601f66e1ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,23 +6,29 @@ jobs:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
submodules: recursive
- name: Install clang-format-3.9 - name: Install clang-format-3.9
run: sudo apt --assume-yes install clang-format-3.9 run: sudo apt --assume-yes install clang-format-3.9
- name: Install dependencies
run: |
sudo apt --assume-yes install libusb-1.0-0-dev
python3 -m pip install -r ./inference-engine/ie_bridges/python/requirements.txt
- name: CMake - name: CMake
run: | run: |
mkdir ngraph-build mkdir build
cd ngraph-build cd build
cmake ../ngraph cmake ..
- name: Check - name: Check code style
run: | run: make style-check
make style-check working-directory: build
working-directory: ngraph-build
- name: apply-code-format - name: Create code style diff
if: ${{ failure() }} if: failure()
run: | run: |
ngraph/maint/apply-code-format.sh ngraph/maint/apply-code-format.sh
git diff >code_style_diff.patch git diff >code_style_diff.patch