Skip to content

Commit

Permalink
Merge pull request argoverse#10 from Slowki/fix/travis-tests
Browse files Browse the repository at this point in the history
use tox in Travis
  • Loading branch information
mriley-argo authored Jun 21, 2019
2 parents 8effe7a + 8e62aca commit 01fd4ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
17 changes: 4 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
language: python
dist: xenial
python:
- 3.6
- "3.7"

before_install:
- sudo apt-get update

- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda update --yes conda
- conda config --add channels conda-forge
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION pip numpy scipy matplotlib
#- pip install -r requirements.txt
- pip install tox-travis==0.12 tox==3.12.1

# command to run tests
script:
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then pytest tests/*; fi
- tox

notifications:
email:
Expand Down
2 changes: 1 addition & 1 deletion argoverse/visualization/colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import numpy as np


def colormap(rgb=False):
def colormap(rgb: bool = False) -> np.ndarray:
color_list = np.array(
[
0.000, 0.447, 0.741,
Expand Down

0 comments on commit 01fd4ee

Please sign in to comment.