Skip to content

Commit

Permalink
Add circle ci configs
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Menezes <luiz.menezesf@gmail.com>
  • Loading branch information
lamenezes committed Aug 22, 2018
1 parent 71c0a8a commit 7e5fe53
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 13 deletions.
56 changes: 56 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
version: 2
workflows:
version: 2
test:
jobs:
- py36
- py37

jobs:
py36: &test-template
working_directory: ~/repo
docker:
- image: circleci/python:3.6.6

steps:
- checkout

- restore_cache:
key: v1-dependencies-{{ checksum "sismple_model/__version__.py" }}

- run:
name: Install test dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements-test.txt
pip install codecov
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "simple_model/__version__.py" }}

- run:
name: Linters
command: |
. venv/bin/activate
flake8 simple_model tests --ignore=E501
mypy simple_model
- run:
name: Run tests
command: |
. venv/bin/activate
pytest
- run:
name: codecov
command: |
. venv/bin/activate
codecov
py37:
<<: *test-template
docker:
- image: circleci/python:3.7.0
13 changes: 0 additions & 13 deletions tox.ini

This file was deleted.

0 comments on commit 7e5fe53

Please sign in to comment.