Skip to content

Commit

Permalink
Merge pull request #126 from monocongo/issue_53_circleci
Browse files Browse the repository at this point in the history
CircleCI configuration
  • Loading branch information
monocongo authored Jan 31, 2020
2 parents f0917bc + b64dadd commit 1076a34
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 10 deletions.
50 changes: 50 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
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 codecov
pip install coverage
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 (for example logs, binaries, etc)
# to be available in the web app or through the API
- store_artifacts:
path: test-reports
33 changes: 26 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
absl-py==0.9.0
astor==0.7.1
astor==0.8.1
attrs==19.2.0
backcall==0.1.0
bleach==3.1.0
boto3==1.11.9
botocore==1.14.9
cachetools==4.0.0
certifi==2019.11.28
chardet==3.0.4
contextlib2==0.6.0
cvdata==0.0.6
-e git+https://github.com/monocongo/cvdata@cb95eefbe926ee0bfdcff244e110c01134d33d5a#egg=cvdata
cycler==0.10.0
Cython==0.29.13
decorator==4.4.0
defusedxml==0.6.0
docutils==0.15.2
entrypoints==0.3
filelock==3.0.10
gast==0.2.2
google-auth==1.11.0
google-auth-oauthlib==0.4.1
google-pasta==0.1.7
grpcio==1.23.0
grpcio==1.26.0
h5py==2.10.0
idna==2.8
ImageHash==4.0
importlib-metadata==0.23
inflect==4.0.0
ipykernel==5.1.2
ipython==7.8.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
jaraco.itertools==5.0.0
jedi==0.15.1
jmespath==0.9.4
jsonschema==3.0.2
Expand All @@ -40,22 +47,29 @@ Markdown==3.1.1
MarkupSafe==1.1.1
matplotlib==3.1.1
mistune==0.8.4
more-itertools==8.1.0
nbconvert==5.6.0
nbformat==4.4.0
notebook==6.0.1
numpy==1.17.2
oauthlib==3.1.0
opencv-python==4.1.2.30
opt-einsum==3.1.0
pandas==1.0.0rc0
packaging==20.1
pandas==0.25.3
pandocfilters==1.4.2
parso==0.5.1
pexpect==4.7.0
pickleshare==0.7.5
Pillow==6.2.0
pluggy==0.12.0
prometheus-client==0.7.1
prompt-toolkit==2.0.10
protobuf==3.10.0
ptyprocess==0.6.0
py==1.8.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
Pygments==2.4.2
pyparsing==2.4.2
pyrsistent==0.15.4
Expand All @@ -65,23 +79,28 @@ PyWavelets==1.1.1
pyzmq==18.1.0
qtconsole==4.5.5
requests==2.22.0
requests-oauthlib==1.3.0
rsa==4.0
s3transfer==0.3.2
scipy==1.4.1
Send2Trash==1.5.0
six==1.12.0
tensorboard==2.0.0
tensorflow==2.0.0
tensorboard==2.1.0
tensorflow==2.1.0
tensorflow-cpu==1.15.0rc2
tensorflow-estimator==2.0.0
tensorflow-estimator==2.1.0
termcolor==1.1.0
terminado==0.8.2
testpath==0.4.2
toml==0.10.0
tornado==6.0.3
tqdm==4.42.0
traitlets==4.3.3
urllib3==1.25.8
virtualenv==16.7.5
wcwidth==0.1.7
webencodings==0.5.1
Werkzeug==0.16.0
widgetsnbextension==3.5.1
wrapt==1.11.2
zipp==2.1.0
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{36,37,},coverage
envlist = py37

# Define the minimal tox version required to run; if the host
# tox is less than this the tool with create an environment and
Expand All @@ -13,12 +13,14 @@ minversion = 3.3.0
isolated_build = true

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

coverage run -m pytest tests {posargs}
codecov

0 comments on commit 1076a34

Please sign in to comment.