Try to run the summary after the jobs #87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |