From: Kamalesh Babulal Date: Mon, 31 Oct 2022 17:05:12 +0000 (-0600) Subject: workflows/ci: add Python lint X-Git-Tag: v3.1.0~279 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e211970c9ee24f3d4967737536f06264d03c24b9;p=thirdparty%2Flibcgroup.git workflows/ci: add Python lint 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 Signed-off-by: Tom Hromatka --- diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index a9692b94..8dfc03b0 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -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