Skip to content

Commit

Permalink
Merge pull request #28 from DevOps2025Group1/tim/pipeline_checks
Browse files Browse the repository at this point in the history
Expand GH pipeline with pylint and bandit
  • Loading branch information
DaanRosendal authored Feb 14, 2025
2 parents 8c3624c + 4ec3213 commit 231de03
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 57 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run static analysis on the code

on:
pull_request:
branches:
[ main ]

jobs:
# Run pylint to check for code quality
pylint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.11

- name: Install dependencies
run: |
pip3 install pylint
pip3 install -r requirements.txt
- name: Run pylint
run: |
pylint . --max-line-length=120 --disable=invalid-name,missing-function-docstring
# Run Bandit to check for common security vulnerabilities
bandit:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.11

- name: Install dependencies
run: pip3 install bandit

- name: Run Bandit
run: bandit -r .
2 changes: 2 additions & 0 deletions Chatbot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""The main file of the project."""

from openai import OpenAI
import streamlit as st

Expand Down
56 changes: 0 additions & 56 deletions app_test.py

This file was deleted.

4 changes: 3 additions & 1 deletion pages/1_profile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
"""A placeholder page for the user's profile details."""

import streamlit as st

st.title("Your profile details")
st.text("TODO")
st.text("TODO")

0 comments on commit 231de03

Please sign in to comment.