github/workflows: check dnf-json with pylint

Use a fedora container for dnf dependency.
Add a pylintrc file to the project with 120 max line length and
docstrings ignored.
This commit is contained in:
Achilleas Koutsou 2022-03-04 15:57:39 +01:00 committed by Christian Kellner
parent e4baddfad1
commit f449cd45e8
2 changed files with 21 additions and 0 deletions

View file

@ -37,6 +37,20 @@ jobs:
- name: Send coverage to codecov.io
run: bash <(curl -s https://codecov.io/bash)
python-lint:
name: "🐍 Lint (dnf-json)"
runs-on: ubuntu-latest
container:
image: docker.io/library/fedora:latest
steps:
- uses: actions/checkout@v2.4.0
- name: Install dependencies
run: |
dnf -y install python3-pylint
- name: Analysing the code with pylint
run: |
python3 -m pylint dnf-json
unit-tests:
name: "🛃 Unit tests"
runs-on: ubuntu-20.04