[X2Go-Commits] [nx-libs] 259/429: Add pylint to GitHub Actions

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:36:45 CEST 2021


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit 69864ad11cf05198a673e4507d6006b21a243a31
Author: Mario Trangoni <mjtrangoni at gmail.com>
Date:   Sun Feb 7 14:19:52 2021 +0100

    Add pylint to GitHub Actions
    
    Signed-off-by: Mario Trangoni <mjtrangoni at gmail.com>
---
 .github/workflows/linters.yml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

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 at 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

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list