diff --git a/.circleci/config.yml b/.circleci/config.yml index 9806399..6458519 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,11 +1,9 @@ version: 2 jobs: - build: + python2: docker: - image: circleci/python:2 - working_directory: ~/repo - steps: - checkout @@ -35,3 +33,55 @@ jobs: command: | . venv/bin/activate make test + + python3: + docker: + - image: circleci/python:3 + + steps: + - checkout + + - run: + name: Install container dependencies + command: | + sudo apt-get update + sudo apt-get install -qq gfortran liblapack-dev + + - run: + name: Install python dependencies + command: | + python -m venv venv + . venv/bin/activate + # Hack to disable the progress bar + set -o pipefail; pip install -r requirements.txt | cat + + - run: + name: Show versions + command: | + . venv/bin/activate + pip freeze + + - run: + name: Run tests + command: | + . venv/bin/activate + make test + +workflows: + version: 2 + + on-commit: + jobs: + - python2 + - python3 + + daily: + triggers: + - schedule: + cron: "0 17 * * *" + filters: + branches: + only: master + jobs: + - python2 + - python3