Skip to content

Commit 166ed76

Browse files
committed
industrial-edge-insigights-timeseries: Added pylint scan
Changes: ndustrial-edge-insights-time-series-scans.yml - Added pylint scan Signed-off-by: Pooja Kumbharkar <pooja.kumbharkar@intel.com>
1 parent 5250b0d commit 166ed76

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/industrial-edge-insights-time-series-scans.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ on:
2828
- virus-scan
2929
- dbs-scan
3030
- codeql-scan
31+
- pylint-scan
3132

3233
application:
3334
description: 'Which application to scan (time-series, multimodal or both)'
@@ -944,4 +945,71 @@ jobs:
944945

945946
path: codeql_multimodal_reports.zip
946947

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
9471015

0 commit comments

Comments
 (0)