diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 93604e8..4e1b6c5 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,9 +1,19 @@ -name: Pylint +name: Linters on: [push] jobs: - build: + + docker-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: hadolint/hadolint-action@v2.1.0 + with: + recursive: true + ignore: DL3041 + + python-lint: runs-on: ubuntu-latest strategy: diff --git a/Dockerfile b/Dockerfile index ad6742e..0ab5138 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,12 @@ FROM fedora:36 WORKDIR /root -# for nvme-stas -RUN dnf install -y python3-dasbus python3-pyudev python3-systemd python3-gobject meson -# for libnvme -RUN dnf install -y git gcc g++ cmake openssl-devel libuuid-devel json-c-devel swig python-devel meson +# first line for nvme-stas +# second line for libnvme +RUN dnf install -y python3-dasbus python3-pyudev python3-systemd python3-gobject meson \ + git gcc g++ cmake openssl-devel libuuid-devel json-c-devel swig python-devel meson && dnf clean all COPY . . -RUN meson .build && ninja -C .build && cd .build && meson install +RUN meson .build && ninja -C .build && meson install -C .build ENTRYPOINT ["python3"]