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.
This commit is contained in:
Ondřej Budai 2023-08-07 16:55:54 +02:00 committed by Simon de Vlieger
parent f075b743e8
commit 330d9d8188

View file

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