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

CircleCI configuration #126

Merged
merged 20 commits into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
b7f08b9
updated requirements.txt based on a fresh conda environment that succ…
monocongo Jan 29, 2020
c5176f1
initial (boilerplate) CircleCI config file
monocongo Jan 29, 2020
a8e75de
updated the CircleCI config file to instal lthe project code as an ed…
monocongo Jan 29, 2020
6ced28c
updated the CircleCI config file to use Python version 3.7
monocongo Jan 29, 2020
0865982
updated the CircleCI config file to use conda for virtual environment
monocongo Jan 29, 2020
649ead3
updated the CircleCI config file to use Python version 3, in case thi…
monocongo Jan 29, 2020
f247ee0
updated the CircleCI config file to try a different approach for tox
monocongo Jan 29, 2020
2fc477b
minor edits for formatting etc.
monocongo Jan 29, 2020
fdc3bcf
updated the formatting of the CircleCI config file; added codecov to …
monocongo Jan 30, 2020
4c51fba
updated the CircleCI config to fix a formatting error
monocongo Jan 30, 2020
137a986
fixed tox.ini to use correct CircleCI variables
monocongo Jan 30, 2020
af2f713
updated the tox config file to remove Python 3.6 environment and cove…
monocongo Jan 30, 2020
6436db3
updated the CircleCI config file to have a store test results step
monocongo Jan 30, 2020
5849ef8
updated the CircleCI config file to install the package
monocongo Jan 30, 2020
29a5aa4
updated the CircleCI and tox config files for coverage/codecov
monocongo Jan 30, 2020
5b4b7bd
updated the CircleCI and tox config files to see if it fixes the mult…
monocongo Jan 31, 2020
359cfb8
updated the CircleCI config file to use machine instead of Docker
monocongo Jan 31, 2020
0b49533
removed a dash that is probably causing a parsing error
monocongo Jan 31, 2020
4265ff7
another attempt at a working config for tox/CircleCI/codecov
monocongo Jan 31, 2020
b64dadd
removed commented-out lines from the (now working) tox and CircleCI c…
monocongo Jan 31, 2020
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
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