mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-12-20 20:32:22 -06:00
Adds coverage report to gitignore. Adds extra coverage test to workflow.
This commit is contained in:
9
.github/workflows/run_tests.yml
vendored
9
.github/workflows/run_tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user