Skip to content

Commit

Permalink
travis: run pytest --low-performance and show timing
Browse files Browse the repository at this point in the history
  • Loading branch information
orbeckst committed Aug 2, 2018
1 parent e00821d commit 343e5b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
global:
- PYTHON_VERSION=2.7
- CODECOV=true
- PYTEST_FLAGS="-v --disable-pytest-warnings --durations=20"
- PYTEST_FLAGS="-v --disable-pytest-warnings --durations=20 --low-performance"
- PYTEST_LIST="gromacs/tests"
- MAIN_CMD="pytest ${PYTEST_LIST}"
- SETUP_CMD="${PYTEST_FLAGS}"
Expand Down
10 changes: 10 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@
'six', # towards py 3 compatibility
'numkit', # numerical helpers
],
# also currently requires
#
# pip install git+git://github.com/ianmkenney/pytest-gmx.git
#
# for the low_performance pytest fixture: allows running
#
# pytest --low-performance
#
# so that test are run with 'gmx mdrun -nt 2' as necessary on travis
# (instead of the maximum number of threads, as determined by Gromacs)
tests_require = ['pytest', 'numpy>=1.0', 'pandas>=0.17'],
zip_safe = True,
)
Expand Down

0 comments on commit 343e5b0

Please sign in to comment.