Skip to content

Commit

Permalink
Merge pull request #35 from Vastra-Gotalandsregionen/AI-1155
Browse files Browse the repository at this point in the history
AI-1155: Adds pylint stage
  • Loading branch information
luksi1 authored Aug 18, 2023
2 parents e167d8e + 95e0590 commit defad0d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Docker Image CI
name: Hadolint

on: [push]

Expand All @@ -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/[email protected]
with:
dockerfile: acme/Dockerfile
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/pylint_projects.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit defad0d

Please sign in to comment.