/
config.yml
125 lines (119 loc) · 4.14 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
version: 2.1
commands:
install-packaged-featuretools:
description: "install featuretools from source distribution"
steps:
- run : |
source test_env/bin/activate
python setup.py sdist
FEATURETOOLS_VERSION=$(python setup.py --version)
tar -zxvf "dist/featuretools-${FEATURETOOLS_VERSION}.tar.gz"
pip install -e "featuretools-${FEATURETOOLS_VERSION}/"
pip install -r "featuretools-${FEATURETOOLS_VERSION}/test-requirements.txt"
run-packaged-tests:
description: "run unit tests on packaged testing files"
steps:
- run: |
source test_env/bin/activate
cd "featuretools-$(python setup.py --version)/"
pytest
install-ft-complete:
description: "install featuretools[complete]"
steps:
- run: |
virtualenv test_ft_complete_env && source test_ft_complete_env/bin/activate
FEATURETOOLS_VERSION=$(python setup.py --version)
pip install -e "featuretools-${FEATURETOOLS_VERSION}/[complete]"
run-import-tests:
description: "testing imports of add-ons"
steps:
- run: |
source test_ft_complete_env/bin/activate
python -c "import featuretools_tsfresh_primitives"
python -c "import featuretools_update_checker"
jobs:
"python-27":
working_directory: ~/featuretools
docker:
- image: circleci/python:2.7
steps:
- run: sudo apt update && sudo apt install -y graphviz
- checkout
- run: virtualenv test_env && virtualenv dev_env
- install-packaged-featuretools
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- run-packaged-tests
- install-ft-complete
- run-import-tests
"python-35":
working_directory: ~/featuretools
docker:
- image: circleci/python:3.5
steps:
- run: sudo apt update && sudo apt install -y graphviz
- checkout
- run: virtualenv test_env && virtualenv dev_env
- install-packaged-featuretools
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- run-packaged-tests
- install-ft-complete
- run-import-tests
"python-36":
working_directory: ~/featuretools
docker:
- image: circleci/python:3.6
steps:
- run: sudo apt update && sudo apt install -y graphviz pandoc
- checkout
- run: virtualenv test_env && virtualenv dev_env
- install-packaged-featuretools
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- run-packaged-tests
- install-ft-complete
- run-import-tests
- run: source dev_env/bin/activate && make -C docs/ -e "SPHINXOPTS=-W" clean html
"python-37":
working_directory: ~/featuretools
docker:
- image: circleci/python:3.7
steps:
- run: sudo apt update && sudo apt install -y graphviz
- checkout
- run: virtualenv test_env && virtualenv dev_env
- install-packaged-featuretools
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- install-ft-complete
- run-import-tests
- run: |
source test_env/bin/activate
pip install "$(cat dev-requirements.txt | grep codecov)"
coverage erase
FEATURETOOLS_VERSION=$(python setup.py --version)
cd "featuretools-${FEATURETOOLS_VERSION}/"
coverage erase
pytest featuretools/tests --cov=featuretools --cov-config=../.coveragerc
cd ../
cp "featuretools-${FEATURETOOLS_VERSION}/.coverage" .coverage
codecov
"changelog_updated":
working_directory: ~/featuretools
docker:
- image: circleci/python:3.7
steps:
- checkout
- run: cat docs/source/changelog.rst | grep ":pr:\`${CIRCLE_PULL_REQUEST##https://github.com/Featuretools/featuretools/pull/}\`"
workflows:
version: 2
test_all_python_versions:
jobs:
- "python-27"
- "python-35"
- "python-36"
- "python-37"
changelog_updated:
jobs:
- "changelog_updated"