Skip to content

Commit 40c63ff

Browse files
committed
added 'Code Quality and Kedro Run Check Github Action' Pipeline.
1 parent d41965f commit 40c63ff

File tree

2 files changed

+38
-26
lines changed

2 files changed

+38
-26
lines changed

.github/workflows/code_quality.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Code Quality and Kedro Run Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
code-quality-check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.8'
21+
22+
- name: Install Python tools (Black, Flake8, Bandit)
23+
run: pip install black flake8 bandit
24+
25+
- name: Check Code Formatting with Black
26+
run: black --check .
27+
28+
- name: Lint with Flake8
29+
run: flake8 .
30+
31+
- name: Security Check with Bandit
32+
run: bandit -r .
33+
34+
- name: Install Kedro project dependencies
35+
run: pip install -r docker-requirements.txt
36+
37+
- name: Run Kedro Pipeline
38+
run: kedro run

0 commit comments

Comments
 (0)