mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-13 07:24:47 -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
|
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
|
||||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,4 +7,5 @@ Pipfile.lock
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
.vscode
|
.vscode
|
||||||
.flake
|
.flake
|
||||||
|
.coverage
|
Loading…
Reference in New Issue
Block a user