Unverified Commit ed1c69df authored by Gao, Xiang's avatar Gao, Xiang Committed by GitHub
Browse files

Add test coverage (#129)

parent 12c846d2
FROM zasdfgbnm/pytorch-master FROM zasdfgbnm/pytorch-master
RUN pacman -Sy --noconfirm python-sphinx python2-sphinx python-tqdm python2-tqdm python2-matplotlib python-matplotlib python-pillow python2-pillow flake8 RUN pacman -Sy --noconfirm python-sphinx python2-sphinx python-tqdm python2-tqdm python2-matplotlib python-matplotlib python-pillow python2-pillow flake8
RUN pip install tensorboardX sphinx-gallery ase && pip2 install tensorboardX sphinx-gallery ase RUN pip install tensorboardX sphinx-gallery ase codecov nose && pip2 install tensorboardX sphinx-gallery ase codecov nose
COPY . /torchani COPY . /torchani
RUN cd torchani && pip install . RUN cd torchani && pip install .
RUN cd torchani && pip2 install . RUN cd torchani && pip2 install .
...@@ -18,8 +18,9 @@ steps: ...@@ -18,8 +18,9 @@ steps:
image: '${{BuildTorchANI}}' image: '${{BuildTorchANI}}'
commands: commands:
- find . -name '*.pyc' -delete - find . -name '*.pyc' -delete
- python setup.py test - python setup.py nosetests
# - python2 setup.py test # - python2 setup.py test
- codecov
Tools: Tools:
image: '${{BuildTorchANI}}' image: '${{BuildTorchANI}}'
......
[nosetests]
verbosity=3
detailed-errors=1
with-coverage=1
cover-package=torchani
\ No newline at end of file
...@@ -22,6 +22,7 @@ setup_attrs = { ...@@ -22,6 +22,7 @@ setup_attrs = {
'tensorboardX', 'tensorboardX',
'tqdm', 'tqdm',
'ase', 'ase',
'coverage',
], ],
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment