Adds coverage report to gitignore. Adds extra coverage test to workflow.

This commit is contained in:
TheNetworkGuy 2025-06-12 20:24:29 +00:00
parent 7394bf8d1d
commit 7969de50bf
2 changed files with 11 additions and 1 deletions

View File

@ -19,7 +19,16 @@ jobs:
python -m pip install --upgrade pip
pip install pytest pytest-mock
pip install -r requirements.txt
- name: Install coverage
run: pip install coverage pytest-cov
- name: Testing the code with PyTest
run: |
cp config.py.example config.py
pytest tests
- name: Run tests with coverage
run: |
cp config.py.example config.py
coverage run -m pytest tests
- name: Check coverage percentage
run: |
coverage report --fail-under=70

3
.gitignore vendored
View File

@ -7,4 +7,5 @@ Pipfile.lock
__pycache__/
*.py[cod]
.vscode
.flake
.flake
.coverage