Skip to content

Merge pull request #28 from guanana/snyk-fix-33acc7c9a02092714934e835… #75

Merge pull request #28 from guanana/snyk-fix-33acc7c9a02092714934e835…

Merge pull request #28 from guanana/snyk-fix-33acc7c9a02092714934e835… #75

Workflow file for this run

name: TestCov
on: [push]
env:
IMAGE_NAME: netbox-scanner
NETBOX_ADDRESS: http://test:8000
NETBOX_TOKEN: 12345
jobs:
test:
name: Coverage code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.9
- name: Install nmap
run: sudo apt-get install nmap
- name: Generate coverage report
run: |
pip install pytest
pip install pytest-cov
pip install -r requirements.txt
pytest --cov=./ --cov-report=xml
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true
verbose: true