actions / starter-workflows

Accelerating new GitHub Actions workflows
https://github.com/features/actions
Other
8.6k stars 5.09k forks source link

Pylint exit code 30 #2303

Closed VinciGit00 closed 4 months ago

VinciGit00 commented 4 months ago

Hello to everyone, I used Github actions with Pylint. My overall score is 8.92 out of 10 and I still have the error number 30 Error: Process completed with exit code 30. My configuration is the following: `name: Pylint

on: [push]

jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.10"] steps:

AmberSahdev commented 4 months ago

Facing the same. I followed the official example - https://github.com/actions/starter-workflows/blob/main/ci/pylint.yml Here are my job results - https://github.com/AmberSahdev/Open-Interface/actions/runs/8107217101/job/22158371453

AmberSahdev commented 4 months ago

@VinciGit00 were you able to resolve this?

Soft-Buddy commented 4 months ago

@AmberSahdev Hi buddy, I'm encountering the same issue. Here's a temporary workaround I found. In the analyzing code part, modify it to be like :

 - name: Analysing the code with pylint
        run: |
          pylint $(git ls-files '*.py') --output=lint.txt || true

Demo Workflow

name: Pylint

on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.11"]
    steps:
      - uses: actions/checkout@v3

      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v3
        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 $(git ls-files '*.py') --output=lint.txt || true

      - name: Upload Artifact
        uses: actions/upload-artifact@v3
        with:
          name: lint.txt
          path: lint.txt
VinciGit00 commented 4 months ago

it works also with this ` name: Pylint

on: [push]

jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.10"] steps:

`

Soft-Buddy commented 4 months ago

Great to know that @VinciGit00 !

fshofmann commented 3 months ago

why is this issue closed? searching through the marketplace, one still comes the fault workflow!

VinciGit00 commented 3 months ago

You should do run: pylint --disable=C0114,C0115,C0116 --exit-zero

rmt0009alu commented 2 months ago

The only way to solve this, without disabling the warnings, is the way @Soft-Buddy exposed, thank you.