diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62dc8d3d2..bf5a1bb9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,11 +40,25 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: DoozyX/clang-format-lint-action@v0.15 + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Python for cpplint + uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - name: Install cpplint + run: pip install cpplint + + - name: Run cpplint + run: find . -iname "*.h" -o -iname "*.cc" | grep -v -e "^./tachyon/base/" -e "^./tachyon/device/" | xargs cpplint --filter=-legal/copyright,-whitespace/line_length,-build/namespaces,-runtime/references + + - name: Run clang-format lint + uses: DoozyX/clang-format-lint-action@v0.15 with: - source: '.' - exclude: './lib' - extensions: 'h,cc' + source: "." + exclude: "./lib" + extensions: "h,cc" clangFormatVersion: 15 inplace: True