-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.12 KB
/
code-analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Code Analysis
on:
push:
branches:
- '**'
jobs:
CodeAnalysis:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/[email protected]
with:
python-version: 3.x
- name: Display Python version
run: |
python --version
- name: Install dependencies
run: |
pip install poetry
poetry install --with dev
- name: Check for outdated dependencies
if: env.skip-job != 'true'
run: |
poetry show --outdated --only main
- name: Run tests with coverage in latest stable 3.x
run: |
poetry run pytest --cov=app --cov-report=term-missing
continue-on-error: false
- name: Run Bandit for security analysis
run: |
poetry run bandit -r app
continue-on-error: false
- name: Run Ruff for linting
run: |
poetry run ruff check .
continue-on-error: false
- name: Run Vulture for dead code analysis
run: |
poetry run vulture . --min-confidence 70
continue-on-error: false