]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
workflows/ci: add Python lint
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 31 Oct 2022 17:05:12 +0000 (11:05 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 31 Oct 2022 17:05:18 +0000 (11:05 -0600)
Add Python lint to the GitHub workflow.  This was previously part of
the libcgroup-test project GitHub workflow, which hosted most of the
python source code.  Now that libcgroup-test is part of libcgroup repo,
let's add the lint workflow here too.

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

index a9692b942f499f5c4dd29411f1e3fa89dbe5da92..8dfc03b0b49f53e5e6f56d23facc42477e8071df 100644 (file)
@@ -60,6 +60,21 @@ jobs:
           severity: warning
           token: ${{ secrets.GITHUB_TOKEN }}
 
+  flake8-lint:
+    name: Lint
+    runs-on: ubuntu-latest
+    steps:
+      - 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 }}
+
   doxygen:
     name: Doxygen
     # Only run Doxygen against the main branch