]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
workflows/ci: use more extensive Python lint
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 4 Mar 2022 16:16:49 +0000 (09:16 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 4 Mar 2022 16:17:30 +0000 (09:17 -0700)
Make the Python linting more exhaustive, using
https://github.com/reviewdog/action-flake8. The current linting
is limited to syntax errors, and it can also be extended. The
reason to use new action is that there is active development
in comparison to the current action used.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
.github/workflows/continuous-integration.yml

index 30daa94d7cfcb26397f50e819fcc3064e845efae..b92d5b193fed6fc6a38f84ccb1d840b84f887b92 100644 (file)
@@ -23,11 +23,20 @@ name: Continuous Integration
 on: ["push", "pull_request"]
 
 jobs:
-  lint:
+  flake8-lint:
+    name: Lint
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/checkout@v2
-    - uses: cclauss/Find-Python-syntax-errors-action@master
+      - name: Check out source repository
+        uses: actions/checkout@v2
+      - name: Set up Python environment
+        uses: actions/setup-python@v2
+        with:
+          python-version: "3.8"
+      - name: flake8 Lint
+        uses: reviewdog/action-flake8@v3
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
 
   # Thanks to github user @martyrs
   # https://github.community/t/how-to-properly-clean-up-self-hosted-runners/128909/3