mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-12 23:14:48 -06:00
Adds coverage report to gitignore. Adds extra coverage test to workflow.
This commit is contained in:
parent
7394bf8d1d
commit
7969de50bf
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
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,4 +7,5 @@ Pipfile.lock
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
.vscode
|
||||
.flake
|
||||
.flake
|
||||
.coverage
|
Loading…
Reference in New Issue
Block a user