|
28 | 28 | - virus-scan |
29 | 29 | - dbs-scan |
30 | 30 | - codeql-scan |
| 31 | + - pylint-scan |
31 | 32 |
|
32 | 33 | application: |
33 | 34 | description: 'Which application to scan (time-series, multimodal or both)' |
@@ -944,4 +945,71 @@ jobs: |
944 | 945 |
|
945 | 946 | path: codeql_multimodal_reports.zip |
946 | 947 |
|
| 948 | + pylint-time-series-job: |
| 949 | + name: Pylint Scan - Time Series Python |
| 950 | + if: ${{ ((inputs.target == 'pylint-scan') || (inputs.target == 'all-scans')) && ((inputs.application == 'time-series') || (inputs.application == 'both')) }} |
| 951 | + permissions: |
| 952 | + contents: read |
| 953 | + strategy: |
| 954 | + fail-fast: false |
| 955 | + matrix: |
| 956 | + include: |
| 957 | + - ubuntu_version: ubuntu24 |
| 958 | + steps: |
| 959 | + - name: Checkout code |
| 960 | + uses: actions/checkout@v4 |
| 961 | + |
| 962 | + - name: Set up Python |
| 963 | + uses: actions/setup-python@v5 |
| 964 | + with: |
| 965 | + python-version: '3.11' # or any version you need |
| 966 | + |
| 967 | + - name: Install dependencies |
| 968 | + run: | |
| 969 | + python -m pip install --upgrade pip |
| 970 | + pip install pylint |
| 971 | +
|
| 972 | + - name: Run Pylint |
| 973 | + run: | |
| 974 | + pylint manufacturing-ai-suite/industrial-edge-insights-time-series/* .py > manufacturing-ai-suite/industrial-edge-insights-time-series/pylint-report.txt || true |
| 975 | + |
| 976 | + - name: Upload Pylint report |
| 977 | + uses: actions/upload-artifact@v4 |
| 978 | + with: |
| 979 | + name: pylint-report |
| 980 | + path: manufacturing-ai-suite/industrial-edge-insights-time-series/pylint-report.txt |
| 981 | + |
| 982 | + pylint-multimodal-job: |
| 983 | + name: Pylint Scan - Multimodal Python |
| 984 | + if: ${{ ((inputs.target == 'pylint-scan') || (inputs.target == 'all-scans')) && ((inputs.application == 'multimodal') || (inputs.application == 'both')) }} |
| 985 | + permissions: |
| 986 | + contents: read |
| 987 | + strategy: |
| 988 | + fail-fast: false |
| 989 | + matrix: |
| 990 | + include: |
| 991 | + - ubuntu_version: ubuntu24 |
| 992 | + steps: |
| 993 | + - name: Checkout code |
| 994 | + uses: actions/checkout@v4 |
| 995 | + |
| 996 | + - name: Set up Python |
| 997 | + uses: actions/setup-python@v5 |
| 998 | + with: |
| 999 | + python-version: '3.11' # or any version you need |
| 1000 | + |
| 1001 | + - name: Install dependencies |
| 1002 | + run: | |
| 1003 | + python -m pip install --upgrade pip |
| 1004 | + pip install pylint |
| 1005 | +
|
| 1006 | + - name: Run Pylint |
| 1007 | + run: | |
| 1008 | + pylint manufacturing-ai-suite/industrial-edge-insights-multimodal/*.py > manufacturing-ai-suite/industrial-edge-insights-multimodal/pylint-report.txt || true |
| 1009 | + |
| 1010 | + - name: Upload Pylint report |
| 1011 | + uses: actions/upload-artifact@v4 |
| 1012 | + with: |
| 1013 | + name: pylint-report |
| 1014 | + path: manufacturing-ai-suite/industrial-edge-insights-multimodal/pylint-report.txt |
947 | 1015 |
|
0 commit comments