Skip to content

Add code coverage

Add code coverage #6

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
push:
branches:
- github-ci
jobs:
build-and-test:

Check failure on line 12 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install poetry
poetry install --with dev
- name: Run tests with coverage
run: |
poetry run pytest --cov=app --cov-report=term-missing tests
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