Skip to content

Commit

Permalink
Add CI workflow for automated builds and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiran Jojare committed Jul 19, 2024
1 parent c69e419 commit ee1d219
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI
name: CI Workflow

on: [push, pull_request]
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
Expand All @@ -13,23 +17,28 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: '3.12.2'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run linting
- name: Run tests
run: |
python -m unittest discover test
- name: Check code quality with flake8
run: |
pip install flake8
flake8 src/
flake8 src test
- name: Run tests
- name: Static code analysis with pylint
run: |
# Add your test command here if you have tests
echo "Tests would run here"
pip install pylint
pylint src test
- name: Check Python files
- name: Run security checks
run: |
python -m compileall src/
pip install bandit
bandit -r src test

0 comments on commit ee1d219

Please sign in to comment.