diff options
author | Mario Trangoni <mjtrangoni@gmail.com> | 2021-02-07 14:19:52 +0100 |
---|---|---|
committer | Mario Trangoni <mjtrangoni@gmail.com> | 2021-02-07 17:00:11 +0100 |
commit | 69864ad11cf05198a673e4507d6006b21a243a31 (patch) | |
tree | 023bddfb96e7d9a338c94be7040628f225bf7ccd /.github/workflows | |
parent | b42544cf4c8e14d3a070a12695fcc3bb5d867def (diff) | |
download | nx-libs-69864ad11cf05198a673e4507d6006b21a243a31.tar.gz nx-libs-69864ad11cf05198a673e4507d6006b21a243a31.tar.bz2 nx-libs-69864ad11cf05198a673e4507d6006b21a243a31.zip |
Add pylint to GitHub Actions
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/linters.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 6bad1fd15..f8a670610 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -21,8 +21,29 @@ jobs: - name: run Shellcheck run: | + shellcheck --version find . -name "*.sh" | xargs shellcheck -e SC1004,SC2010,SC2035,SC2086 + # see https://pylint.org/ + pylint: + runs-on: ubuntu-20.04 + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install linters on ubuntu + run: | + sudo apt-get update -q -y + sudo apt-get install pylint + # dependencies + sudo apt-get install --reinstall python-gi + sudo apt-get install python-dbus python-gobject + + - name: run Pylint + run: | + pylint --version + cd nxdialog/; find . -name "nxdialog" -type f | xargs pylint --exit-zero + # see https://github.com/danmar/cppcheck cppcheck: runs-on: ubuntu-20.04 |