mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-25 15:48:54 +02:00
GHA: Add a pylint run reporting errors in the code
This commit is contained in:
15
.github/workflows/linters.yaml
vendored
15
.github/workflows/linters.yaml
vendored
@@ -35,6 +35,21 @@ jobs:
|
|||||||
src: "."
|
src: "."
|
||||||
version: "1.5.1"
|
version: "1.5.1"
|
||||||
|
|
||||||
|
pylint_errors:
|
||||||
|
name: 'Run pylint that reports only errors'
|
||||||
|
runs-on: 'ubuntu-latest'
|
||||||
|
steps:
|
||||||
|
- name: 'Install packages'
|
||||||
|
run: |
|
||||||
|
sudo apt-get -y update
|
||||||
|
sudo apt-get -y --no-install-recommends install pylint python3-rpm
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: 'Run pylint --errors-only'
|
||||||
|
run: |
|
||||||
|
pylint --errors-only osc
|
||||||
|
|
||||||
pylint_plugins:
|
pylint_plugins:
|
||||||
name: 'Diff pylint runs on osc plugin'
|
name: 'Diff pylint runs on osc plugin'
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
|
Reference in New Issue
Block a user