Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CircleCI config and test in Python 3 #35

Merged
merged 1 commit into from
Sep 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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