Skip to content

Commit

Permalink
Merge pull request mattloper#35 from metabolize/mattlopoer-master
Browse files Browse the repository at this point in the history
Fix CircleCI config and test in Python 3
  • Loading branch information
mattloper authored Sep 27, 2019
2 parents ff19515 + 993de6e commit 9a8fba7
Showing 1 changed file with 53 additions and 3 deletions.
56 changes: 53 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
version: 2
jobs:
build:
python2:
docker:
- image: circleci/python:2

working_directory: ~/repo

steps:
- checkout

Expand Down Expand Up @@ -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 9a8fba7

Please sign in to comment.