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