From: Kamalesh Babulal Date: Fri, 4 Mar 2022 16:16:49 +0000 (-0700) Subject: workflows/ci: use more extensive Python lint X-Git-Tag: v3.1.0~308^2~2^2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=878ea0fa7193c1f88d2c498aae195fb306d50476;p=thirdparty%2Flibcgroup.git workflows/ci: use more extensive Python lint 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 Signed-off-by: Tom Hromatka --- diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 30daa94d..b92d5b19 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -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