fix cpp_lint bug

This commit is contained in:
Krishna Vedala 2020-05-26 00:49:27 -04:00
parent 2e2f9c209c
commit 22b375c058
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -11,7 +11,7 @@ jobs:
cpplint_modified_files: cpplint_modified_files:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 # v2 is broken for git diff - uses: actions/checkout@v1 # v2 is broken for git diff
- uses: actions/setup-python@v1 - uses: actions/setup-python@v1
- run: python -m pip install cpplint - run: python -m pip install cpplint
- run: git remote -v - run: git remote -v
@ -42,7 +42,8 @@ jobs:
print("g++:") print("g++:")
# compile_exts = tuple(".c .c++ .cc .cpp .cu .cxx".split()) # compile_exts = tuple(".c .c++ .cc .cpp .cu .cxx".split())
# compile_files = [file for file in cpp_files if file.lower().endswith(compile_exts)] # compile_files = [file for file in cpp_files if file.lower().endswith(compile_exts)]
subprocess.run(["g++"] + cpp_files, check=True, text=True) for cpp_file in cpp_files:
subprocess.run(["g++", cpp_file], check=True, text=True)
upper_files = [file for file in cpp_files if file != file.lower()] upper_files = [file for file in cpp_files if file != file.lower()]
if upper_files: if upper_files: