Unverified Commit 62f93325 authored by Przemyslaw Tredak's avatar Przemyslaw Tredak Committed by GitHub
Browse files

Add C++ lint as GitHub action (#10)



Add lint test as GitHub action
Signed-off-by: default avatarPrzemek Tredak <ptredak@nvidia.com>
Signed-off-by: default avatarPrzemek Tredak <ptredak@nvidia.com>
parent b0562288
# Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# See LICENSE for license information.
# A workflow to trigger C++ lint test on GitHub
name: 'Lint test'
on:
pull_request:
workflow_dispatch:
jobs:
cpplint:
name: C++
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Lint
run: |
cp qa/L0_lint/CPPLINT.cfg . && \
export CPP_ONLY=1 && \
export TE_PATH=. && \
bash ./qa/L0_lint/test.sh
......@@ -13,6 +13,9 @@ cpplint --root transformer_engine/common/include --recursive transformer_engine/
echo "Checking C++ files"
cd $TE_PATH && \
cpplint --recursive --exclude=transformer_engine/common/include transformer_engine
echo "Checking Python files"
cd $TE_PATH && \
pylint --recursive=y transformer_engine
if [ -z "${CPP_ONLY}" ]
then
echo "Checking Python files"
cd $TE_PATH && \
pylint --recursive=y transformer_engine
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment