Skip to content

Commit

Permalink
updated the formatting of the CircleCI config file; added codecov to …
Browse files Browse the repository at this point in the history
…the tox configuration

#53
  • Loading branch information
monocongo committed Jan 30, 2020
1 parent 2fc477b commit fdc3bcf
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 56 deletions.
111 changes: 57 additions & 54 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,73 +2,76 @@
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:

# using tox
toxify:
# ------ WORKFLOW VERSION ------
#version: 2
#jobs:
#
# # using tox
# toxify:
#
# docker:
# - image: circleci/python:3.7
#
# steps:
# - checkout
# # download and cache dependencies
# - restore_cache:
# keys:
# - v1-dependencies-{{ checksum "requirements.txt" }}
# # fallback to using the latest cache if no exact match is found
# - v1-dependencies-
#
# - run: pip install tox && tox
#
#workflows:
# version: 2
#
# cvdata:
# jobs:
# - toxify

# ------ NON-WORKFLOW VERSION ------
jobs:
build:
docker:
# specify the version you desire here
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
- image: circleci/python:3.7

working_directory: ~/repo

steps:
- checkout
# download and cache dependencies

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: pip install tox && tox
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
# pip install -e .
pip install tox
workflows:
version: 2
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}

cvdata:
jobs:
- toxify
# run tests with tox
- run:
name: run tests
command: |
. venv/bin/activate
tox

#jobs:
# build:
# docker:
# # specify the version you desire here
# # CircleCI maintains a library of pre-built images
# # documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/python:3.7
#
# working_directory: ~/repo
#
# steps:
# - checkout
#
# # Download and cache dependencies
# - restore_cache:
# keys:
# - v1-dependencies-{{ checksum "requirements.txt" }}
# # fallback to using the latest cache if no exact match is found
# - v1-dependencies-
#
# - run:
# name: install dependencies
# command: |
# python3 -m venv venv
# . venv/bin/activate
# pip install -e .
# pip install tox
#
# - save_cache:
# paths:
# - ./venv
# key: v1-dependencies-{{ checksum "requirements.txt" }}
#
# # run tests with tox
# - run:
# name: run tests
# command: |
# . venv/bin/activate
# tox
#
# - store_artifacts:
# path: test-reports
# destination: test-reports
- store_artifacts:
path: test-reports
destination: test-reports
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ minversion = 3.3.0
isolated_build = true

[testenv]
passenv = CI CIRCLECI CIRCLECI_*
deps =
coverage
codecov
opencv-python
pytest
scikit-image
commands =
python setup.py check -m -s
py.test tests {posargs}
coverage
codecov

0 comments on commit fdc3bcf

Please sign in to comment.