From 561122dd3099cab6b76a8dc8a086ac0e7392efa9 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 4 Aug 2022 18:32:59 +0200 Subject: [PATCH] ci: add autopep8 check to checks.yml Add to new autopep8 check to the checks suit. Ideally we would move the `test.src` test over from tests.yml, but running that in an updated container leads to a whole lot of new warnings, most of them related to "unspecified encoding" in `open` calls. --- .github/workflows/checks.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 684daf54..526943b4 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -57,6 +57,24 @@ jobs: ignore_words_list: msdos, pullrequest skip: ./.git,coverity,rpmbuild,samples + source: + name: "Source code checks" + runs-on: ubuntu-latest + steps: + - name: "Clone Repository" + uses: actions/checkout@v2 + - name: "Run Tests" + uses: osbuild/containers/src/actions/privdocker@e4de123f43b95e99dfe8eed0bd5a1cd58db50715 + with: + image: ghcr.io/osbuild/osbuild-ci:latest-202208041541 + run: | + git config --global --add safe.directory /osb/workdir + python3 -m pytest \ + test/src/test_pylint.py \ + -k autopep8 \ + --rootdir=. \ + -v + mypy: name: "Mypy check" runs-on: ubuntu-latest