Add code coverage. also, install dev depends from requirements-dev.txt
Some checks failed
Bandit / audit-runtime-security (3.11) (pull_request) Failing after 5m39s
Flake8 / audit (3.11) (pull_request) Successful in 10m3s
Mypy / audit-typing (3.11) (pull_request) Failing after 6m15s
pip-audit / audit-dependency-security (3.11) (pull_request) Successful in 11m14s
Pylint / audit-runtime-security (3.11) (pull_request) Failing after 5m50s
Python Coverage / test-and-coverage (3.11) (pull_request) Failing after 5m40s

This commit is contained in:
2026-03-15 12:21:06 +01:00
parent 633c09ef64
commit 230d031e67
9 changed files with 104 additions and 7 deletions

View File

@ -29,11 +29,11 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python -m pip install --upgrade pytest-cov
pip install -r requirements-dev.txt
- name: Run tests with coverage
run: |
pytest --cov=./ --cov-report=term --cov-report=xml --cov-report=html --junitxml=report.xml
pytest --cov=./ --cov-report=term --cov-report=xml --cov-report=html --junitxml=report.xml app
- name: Upload coverage artifacts
uses: actions/upload-artifact@v3