From 330d9d8188a40f8dcb33cded51742412a056adad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Mon, 7 Aug 2023 16:55:54 +0200 Subject: [PATCH] ci: simplify the Python linters We now have a Makefile target for linting, let's use it in the CI. Running the linters is pretty fast, so we can just do it in one container. --- .github/workflows/check.yml | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index feb36d06..b944eed4 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -19,14 +19,6 @@ jobs: python_code_linters: name: "Python Linters" runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - linter: - - "ruff" - - "pylint" - - "autopep8" - - "isort" steps: - name: "Clone Repository" uses: actions/checkout@v3 @@ -35,25 +27,7 @@ jobs: with: image: ghcr.io/osbuild/osbuild-ci:latest-202304251412 run: | - tox -e "${{ matrix.linter }}" - - python_code_types: - name: "Python Typing" - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - typer: - - "mypy" - steps: - - name: "Clone Repository" - uses: actions/checkout@v3 - - name: "Run Linters" - uses: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b - with: - image: ghcr.io/osbuild/osbuild-ci:latest-202304251412 - run: | - tox -e "${{ matrix.typer }}" + make lint shell_linters: name: "Shell Linters"