Skip to content

Commit

Permalink
Pin test dependencies to resolve TravisCI testing issues. (#234)
Browse files Browse the repository at this point in the history
* create requirements-test.txt file for documenting all testing requirements

* install testing requirements using the new file rather than one by one

* update build version to python3.6
  • Loading branch information
willgraf committed Oct 3, 2019
1 parent 7eac9d5 commit 51b4f03
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ install:
# install all other requirements
- pip install -r requirements.txt
# install testing requirements
- pip install pytest pytest-cov==2.5.1 pytest-pep8 coveralls
# Install sphinx to check documentation build
- pip install sphinx m2r
- pip install -r requirements-test.txt
# install deepcell with setup.py
# - python setup.py install
- python setup.py build_ext --inplace
Expand All @@ -42,7 +40,7 @@ jobs:
- stage: deploy
if: tag IS present
env: TF_VERSION=1.12.0
python: 3.5
python: 3.6
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# build an image with the CPU TensorFlow base image
Expand Down
9 changes: 9 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Running tests
pytest==4.6.5
pytest-cov==2.5.1
pytest-pep8>=1.0.6,<2.0.0
coveralls>=1.8.2,<2.0.0

# Documentation dependencies
sphinx>=1.8.5
m2r>=0.2.1,<1.0.0

0 comments on commit 51b4f03

Please sign in to comment.