diff --git a/.github/workflows/docker_build.yml b/.github/workflows/hadolint_projects.yml similarity index 86% rename from .github/workflows/docker_build.yml rename to .github/workflows/hadolint_projects.yml index 9104906c1..8c2a5eeb4 100644 --- a/.github/workflows/docker_build.yml +++ b/.github/workflows/hadolint_projects.yml @@ -1,5 +1,5 @@ --- -name: Docker Image CI +name: Hadolint on: [push] @@ -13,9 +13,8 @@ jobs: - uses: actions/checkout@v3 - name: Create ${{ matrix.ai_framework }} files run: | - cp tests/.cookiecutterrc ~/.cookiecutterrc pip3 install cookiecutter - cookiecutter . --no-input image=${{ matrix.ai_framework }} + cookiecutter . --no-input image=${{ matrix.ai_framework }} --config-file tests/.cookiecutterrc - uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: acme/Dockerfile diff --git a/.github/workflows/pylint_projects.yml b/.github/workflows/pylint_projects.yml new file mode 100644 index 000000000..5bffb9cee --- /dev/null +++ b/.github/workflows/pylint_projects.yml @@ -0,0 +1,18 @@ +--- +name: Pylint + +on: [push] + +jobs: + linting: + runs-on: ubuntu-latest + strategy: + matrix: + ai_framework: ["Tensorflow", "Pytorch", "R"] + steps: + - uses: actions/checkout@v3 + - name: Pylint ${{ matrix.ai_framework }} files + run: | + pip3 install pylint cookiecutter + cookiecutter . --no-input image=${{ matrix.ai_framework }} --config-file tests/.cookiecutterrc + find ./acme -name "*.py" | xargs pylint