Skip to content

Commit

Permalink
Add pytests to test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues committed Jun 16, 2020
1 parent 4d1185a commit 5babd83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pythontests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
python -m pip install -e .[test]
- name: Install optional dependencies for tests
run: |
pip install boost-histogram uproot pandas || true
- name: Run tests
run: |
python -m histoprint.test
python -m pytest tests/test.py
- name: Run CLI
run: |
histoprint tests/data/1D.txt
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
with open("README.rst") as f:
long_description = f.read()

extras = {"test": ["pytest"]}

setup(
name="histoprint",
version="1.4.0",
Expand All @@ -24,7 +26,8 @@
license="MIT",
packages=["histoprint"],
install_requires=["numpy>=1.0.0", "click>=7.0.0"],
extras_require={},
extras_require=extras,
tests_require=extras["test"],
python_requires=">=2.7",
classifiers=[
# How mature is this project? Common values are
Expand Down

0 comments on commit 5babd83

Please sign in to comment.