Skip to content

By use of Python package, at action cpp-linter is not found #94

Closed
@ibis-hdl

Description

@ibis-hdl

I followed Running without the docker container hopefully correct and in my action I have:

jobs:
  cpp-linter:
    runs-on: ubuntu-22.04
    steps:
...
    - name: Install conan package manager and cpp-linter
      run: |
        python -m pip install --upgrade pip
        pip --disable-pip-version-check --no-cache-dir install wheel conan \
          git+https://github.com/cpp-linter/cpp-linter-action@v1
...

    - name: Run cpp-linter (clang format && tidy)
      id: linter
      run: |
        cpp-linter --version=14 --style=file --tidy-checks='' --ignore=build --database=build/ci-linux-clang

which results to:

Run cpp-linter --version=14 --style=file --tidy-checks='' --ignore=build --database=build/ci-linux-clang
  cpp-linter --version=14 --style=file --tidy-checks='' --ignore=build --database=build/ci-linux-clang
  shell: /usr/bin/bash -e {0}
  env:
    CONAN_V2_MODE: 1
/home/runner/work/_temp/405c3607-29ac-42c3-af1e-b4afbe18453f.sh: line 1: cpp-linter: command not found
Error: Process completed with exit code 127.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions