GitHub Action-错误:进程已完成,退出代码为 14

发布于 2025-01-09 14:59:09 字数 671 浏览 0 评论 0原文

我正在使用 Pylint GitHub 操作。

每次我推送新的提交时,所有构建都会失败。 (除了有时我会收到“操作已取消”之类的错误)

这就是我的 GitHub 操作文件的样子:

name: Pylint

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.8", "3.9", "3.10"]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install pylint
    - name: Analysing the code with pylint
      run: |
        pylint choam

I am using Pylint GitHub action.

Every time I push a new commit all of the builds fail. (except sometimes I get an error like "operation canceled")

This is what my GitHub action file looks like:

name: Pylint

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.8", "3.9", "3.10"]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install pylint
    - name: Analysing the code with pylint
      run: |
        pylint choam

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青衫儰鉨ミ守葔 2025-01-16 14:59:09

您可以使用 pylint-exit 来确定这意味着什么。

pip install pylint-exit

如果执行它,您会得到以下信息:

(exit 14) || pylint-exit $?
The following messages were raised:

  - error message issued
  - warning message issued
  - refactor message issued

No fatal messages detected.  Exiting gracefully...

我认为,这并不是真正的错误

You can use pylint-exit to determine what that means.

pip install pylint-exit

If you execute it, you get the following:

(exit 14) || pylint-exit $?
The following messages were raised:

  - error message issued
  - warning message issued
  - refactor message issued

No fatal messages detected.  Exiting gracefully...

I would assume, it's not really an error

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文