Run nGraph code style check in the root of repo (#1573)
This commit is contained in:
parent
25cadb661b
commit
601f66e1ec
24
.github/workflows/code_style.yml
vendored
24
.github/workflows/code_style.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user