Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use extras_require.test and pytest for test dependencies. #699

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ jobs:
python-version: ${{matrix.python}}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install PyYAML argparse empy rosdep vcstools catkin-pkg python-dateutil packaging
python -m pip install nose coverage pep8
python -m pip install -U -e .[test] pytest-cov
- name: Run tests
run: |
BLOOM_VERBOSE=1 python setup.py nosetests -s --tests test
BLOOM_VERBOSE=1 python -m pytest test --cov
9 changes: 2 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,5 @@ all_files = 1
[upload_sphinx]
upload-dir = doc/build/html

# [nosetests]
# where=test
# with-coverage=0
# cover-package=nose
# debug=nose.loader
# pdb=0
# pdb-failures=0
[tool:pytest]
junit_suite_naem = bloom
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
},
include_package_data=True,
install_requires=install_requires,
extras_require={
'test': [
'pep8',
'pytest',
]},
author='Tully Foote, William Woodall',
author_email='[email protected], [email protected]',
maintainer='William Woodall',
Expand Down
Loading