Skip to content

Commit fe902ff

Browse files
committed
Add test coverage reporting and Configure Bandit security scan
1 parent 5368b7e commit fe902ff

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

.coverage

52 KB
Binary file not shown.

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
run: ruff check backend/app backend/tests
2121

2222
- name: Run Bandit
23-
run: bandit -r backend/app -q -s B311
23+
run: bandit -c .bandit -r backend/app -q
2424

2525
- name: Run Pytest
2626
env:
2727
PYTHONPATH: backend
28-
run: pytest backend/tests
28+
run: pytest backend/tests --cov=backend/app --cov-report=term
2929

3030
frontend:
3131
runs-on: ubuntu-latest

backend/.bandit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bandit]
2+
skips = B311

backend/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ python-multipart==0.0.20
1212
numpy==2.2.1
1313
scikit-learn==1.6.0
1414
pytest==8.3.4
15+
pytest-cov==4.0.0
1516
httpx==0.28.1
1617
ruff==0.8.4
1718
bandit==1.8.0

0 commit comments

Comments
 (0)