我想在Github actions的cpplint帮助下安装自动检查我的代码。
我尝试将其安装在工作流文件中,如下所示:
- name: Install cpplint
working-directory: ${{runner.workspace}}/uast
shell: bash
run: |
pip install wheel
pip install cpplint 在此代码块之后,我尝试运行cpplint:
- name: cpplint
working-directory: ${{runner.workspace}}/uast
shell: bash
run: cpplint --recursive --exclude=source/catch.hpp --filter=-legal/copyright,-build/include_subdir source/* 但是在成功安装之后(在第一个代码块中),我在第二个代码块中得到了"line 1: cpplint: command not found“。
发布于 2020-11-10 20:44:50
请尝试python -m cpplint
- name: cpplint
working-directory: ${{runner.workspace}}/uast
shell: bash
run: python -m cpplint --recursive --exclude=source/catch.hpp --filter=-legal/copyright,-build/include_subdir source/* 通过pip安装的模块不会被识别为系统级命令。
https://stackoverflow.com/questions/64769112
复制相似问题