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 python -m pip install --upgrade pip
pip install pytest pytest-mock pip install pytest pytest-mock
pip install -r requirements.txt pip install -r requirements.txt
- name: Install coverage
run: pip install coverage pytest-cov
- name: Testing the code with PyTest - name: Testing the code with PyTest
run: | run: |
cp config.py.example config.py cp config.py.example config.py
pytest tests 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

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ __pycache__/
*.py[cod] *.py[cod]
.vscode .vscode
.flake .flake
.coverage