reviewdog / action-ansiblelint

Run ansible-lint with reviewdog šŸ•
MIT License
13 stars 7 forks source link

action-ansiblelint/v1.2/script.sh: line 19: ansible-lint: command not found #8

Closed grische closed 3 years ago

grische commented 3 years ago

There seems to be an issue with the current version of this action:

Run reviewdog/action-ansiblelint@v1.2
  with:
    filter_mode: file
    github_token: ***
    level: error
    reporter: github-pr-check
    fail_on_error: false
    workdir: .
    ansiblelint_version: 4.3.7
šŸ¶ Installing reviewdog ... https://github.com/reviewdog/reviewdog
  reviewdog/reviewdog info checking GitHub for tag 'v0.11.0'
  reviewdog/reviewdog info found version: 0.11.0 for v0.11.0/Linux/x86_64
  reviewdog/reviewdog info installed /tmp/tmp.PfPDxpOar4/reviewdog
 Installing ansible-lint ... https://github.com/ansible/ansible-lint
  Collecting ansible-lint==4.3.7
    Downloading https://files.pythonhosted.org/packages/fb/da/16514c866c4215569399386dae5b8a3ccd531808823c1b0c21fd58bdd982/ansible_lint-4.3.7-py2.py3-none-any.whl (79kB)
  Collecting rich (from ansible-lint==4.3.7)
    Downloading https://files.pythonhosted.org/packages/e5/30/4361eeb72b551262ee5ef415ea61b9e5ad2c6028649c63321d23f02c69fb/rich-9.7.0-py3-none-any.whl (185kB)
  Collecting ansible>=2.8 (from ansible-lint==4.3.7)
    Downloading https://files.pythonhosted.org/packages/9e/aa/59e93180a54701c8e0c803729d860a8010b6a07cede54c63e47fa6681cb0/ansible-2.10.5.tar.gz (29.1MB)
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
      ModuleNotFoundError: No module named 'setuptools'

      ----------------------------------------
  Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-jnnxhj2q/ansible/
 Running ansible-lint with reviewdog šŸ¶ ...
  /home/runner/work/_actions/reviewdog/action-ansiblelint/v1.2/script.sh: line 19: ansible-lint: command not found
grische commented 3 years ago

Apologies, the issue was fixed by adding a:

      - uses: actions/setup-python@v2
        with:
          python-version: 3.6