diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index eb65f97..403e158 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,4 +1,4 @@ -name: Workflow for Codecov example-python +name: Workflow for Codecov python-dict-display-filter on: [push, pull_request] jobs: run: @@ -11,7 +11,7 @@ jobs: with: python-version: '3.10' - name: Install dependencies - run: pip install . + run: pip install .[test] - name: Run tests and collect coverage run: pytest --cov . - name: Upload coverage to Codecov diff --git a/.travis.yml b/.travis.yml index 0c98aa3..db54f15 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,6 @@ python: - "3.10" - "3.11" install: - - pip install . + - pip install .[test] script: - python test.py \ No newline at end of file diff --git a/setup.py b/setup.py index a8b6e67..678ee90 100644 --- a/setup.py +++ b/setup.py @@ -29,10 +29,15 @@ 'parameterized==0.8.1', 'pyparsing==3.0.6', 'ipranger==1.1.2', - 'python-dateutil==2.8.2', - 'pytest==7.3.1', - 'pytest-cov==4.0.0', - 'pexpect==4.8.0' + 'python-dateutil==2.8.2' ], + extras_require={ + 'test': [ + 'pytest==7.3.1', + 'pytest-cov==4.0.0', + 'pexpect==4.8.0', + 'python-libnmap==0.7.0' + ] + }, include_package_data=True, )