Skip to content

Updated the Github Action workflow. #4

Updated the Github Action workflow.

Updated the Github Action workflow. #4

name: Code Quality and Kedro Run Check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
code-quality-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install Python tools (Black with Jupyter, Bandit, Ruff)
run: pip install "black[jupyter]" bandit ruff
- name: Auto-fix Formatting Issues with Black
run: black .
- name: Auto-fix Linting Errors with Ruff
run: ruff --fix .
- name: Security Check with Bandit
run: bandit -r .
- name: Install Kedro project dependencies
run: pip install -r docker-requirements.txt
- name: Run Kedro Pipeline
run: kedro run