Skip to content
Permalink
Browse files

Fix CircleCI config and test in Python 3

  • Loading branch information...
paulmelnikow committed Sep 19, 2019
1 parent 7af8601 commit 993de6ecd7b69317cdea49666999fa8887a4deb2
Showing with 53 additions and 3 deletions.
  1. +53 −3 .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

0 comments on commit 993de6e

Please sign in to comment.
You can’t perform that action at this time.