version: 2
jobs:
  py3test:
    working_directory: ~/veidt
    docker:
      - image: materialsvirtuallab/circle-ci-pmg-py3:3.7.3
    steps:
      - checkout
      - run:
          command: |
            export PATH=$HOME/miniconda3/bin:$PATH
            conda config --set always_yes yes --set changeps1 no
            conda update -q conda
            conda info -a
            conda create -q -n test-environment python=3.7 numpy scipy matplotlib sympy cython pandas networkx pytest cmake
            source activate test-environment
            conda update --quiet numpy scipy matplotlib sympy cython pandas networkx pytest pip cmake
            conda install --quiet -c openbabel openbabel
            # conda install --quiet -c clinicalgraphics vtk
            conda install --quiet -c conda-forge python-igraph
            pip install --quiet --ignore-installed -r requirements.txt -r requirements-ci.txt
      - run:
          command: |
            export PATH=$HOME/miniconda3/bin:$PATH
            source activate test-environment
            pip install --quiet -e .
            pytest --cov=veidt --cov-report html:coverage_reports veidt
            echo "pycodestyle checks..."
            pycodestyle veidt
            echo "--- Done ---"
            coveralls
          no_output_timeout: 3600
      - store_artifacts:
          path: coverage_reports/
          destination: tr1
workflows:
  version: 2
  build_and_test:
    jobs:
      - py3test

version: 2
jobs:
  py3test:
    working_directory: ~/veidt
    docker:
      - image: materialsvirtuallab/circle-ci-pmg-py3:3.7.3
    steps:
      - checkout
      - run:
          command: |
            export PATH=$HOME/miniconda3/bin:$PATH
            conda config --set always_yes yes --set changeps1 no
            conda update -q conda
            conda info -a
            conda create -q -n test-environment python=3.6 numpy scipy matplotlib sympy pandas
            source activate test-environment
            conda update --quiet numpy scipy matplotlib sympy pandas
            conda install --quiet -c openbabel openbabel
            pip install --quiet --ignore-installed -r requirements.txt -r requirements-ci.txt
      - run:
          command: |
            export PATH=$HOME/miniconda3/bin:$PATH
            source activate test-environment
            pip install --quiet -e .
            pytest --cov=veidt --cov-report html:coverage_reports veidt
            echo "pycodestyle checks..."
            pycodestyle veidt
            echo "--- Done ---"
            coveralls
          no_output_timeout: 3600
      - store_artifacts:
          path: coverage_reports/
          destination: tr1
workflows:
  version: 2
  build_and_test:
    jobs:
      - py3test

Downgrade python version for tensorflow.
Downgrade python version for tensorflow.
