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

Test featuretools on CI using packaged source files #459

Merged
merged 26 commits into from
Mar 15, 2019
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8d2a3dd
test py27 using packaged featuretools distribution
rwedge Mar 11, 2019
5431865
install dev requirements
rwedge Mar 11, 2019
17dfdc1
install featuretools in editable mode
rwedge Mar 11, 2019
64c172b
test packaged form on all versions
rwedge Mar 11, 2019
eb5b5a6
test using two venvs
rwedge Mar 12, 2019
2b2b366
split up docs testing and codecov
rwedge Mar 12, 2019
fa3b320
use modidfied test_env to run codecov tests
rwedge Mar 12, 2019
6548946
run codecov on packaged tests
rwedge Mar 12, 2019
3f627ef
move coverage report to repo root to avoid warning
rwedge Mar 12, 2019
c596378
revert how test_env is installed on py37
rwedge Mar 12, 2019
5bc3b25
erase coverage in repo root as well
rwedge Mar 13, 2019
5846728
Merge branch 'master' into test-ci-with-packaged-featuretools
rwedge Mar 13, 2019
16ae7ca
remove llvmlite dependency
rwedge Mar 13, 2019
9d147d1
move circleci commands into Makefile
rwedge Mar 14, 2019
c5f5752
update makefile
rwedge Mar 14, 2019
9f79103
update run tests targets
rwedge Mar 14, 2019
a903037
fix typo
rwedge Mar 14, 2019
0ac231a
Update config.yml
rwedge Mar 14, 2019
61a7a76
move circleci macros from makefile to circleci commands
rwedge Mar 15, 2019
c5cd156
Merge branch 'test-ci-with-packaged-featuretools' of github.com:Featu…
rwedge Mar 15, 2019
0b88fc6
ci config syntax
rwedge Mar 15, 2019
7e289f6
more syntax fixes
rwedge Mar 15, 2019
c37cc52
try adding parameters
rwedge Mar 15, 2019
a13ada1
specify config is version 2.1
rwedge Mar 15, 2019
3e178f5
remove command parameters
rwedge Mar 15, 2019
e9e2625
rename ci jobs
rwedge Mar 15, 2019
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
90 changes: 71 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@ jobs:
steps:
- run: sudo apt update && sudo apt install -y graphviz
- checkout
- run: virtualenv venv
- run: source venv/bin/activate && make installdeps
- run: source venv/bin/activate && make lint
- run: source venv/bin/activate && make test
- run: virtualenv test_env && virtualenv dev_env
kmax12 marked this conversation as resolved.
Show resolved Hide resolved
- run: |
source test_env/bin/activate
python setup.py sdist
tar -zxvf "dist/featuretools-$(python setup.py --version).tar.gz"
- run: |
source test_env/bin/activate
FEATURETOOLS_VERSION=$(python setup.py --version)
pip install -e "featuretools-${FEATURETOOLS_VERSION}/"
pip install -r "featuretools-${FEATURETOOLS_VERSION}/test-requirements.txt"
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- run: |
source test_env/bin/activate
cd "featuretools-$(python setup.py --version)/"
pytest

"python-3.5":
working_directory: ~/featuretools
Expand All @@ -19,10 +31,22 @@ jobs:
steps:
- run: sudo apt update && sudo apt install -y graphviz
- checkout
- run: virtualenv venv
- run: source venv/bin/activate && make installdeps
- run: source venv/bin/activate && make lint
- run: source venv/bin/activate && make test
- run: virtualenv test_env && virtualenv dev_env
- run: |
source test_env/bin/activate
python setup.py sdist
tar -zxvf "dist/featuretools-$(python setup.py --version).tar.gz"
- run: |
source test_env/bin/activate
FEATURETOOLS_VERSION=$(python setup.py --version)
pip install -e "featuretools-${FEATURETOOLS_VERSION}/"
pip install -r "featuretools-${FEATURETOOLS_VERSION}/test-requirements.txt"
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- run: |
source test_env/bin/activate
cd "featuretools-$(python setup.py --version)/"
pytest

"python-3.6":
working_directory: ~/featuretools
Expand All @@ -31,14 +55,23 @@ jobs:
steps:
- run: sudo apt update && sudo apt install -y graphviz pandoc
- checkout
- run: virtualenv venv
- run: source venv/bin/activate && make installdeps
- run: source venv/bin/activate && make lint
- run: source venv/bin/activate && make -C docs/ -e "SPHINXOPTS=-W" clean html
- run: virtualenv test_env && virtualenv dev_env
- run: |
source venv/bin/activate
coverage erase
make testcoverage && codecov
source test_env/bin/activate
python setup.py sdist
tar -zxvf "dist/featuretools-$(python setup.py --version).tar.gz"
- run: |
source test_env/bin/activate
FEATURETOOLS_VERSION=$(python setup.py --version)
pip install -e "featuretools-${FEATURETOOLS_VERSION}/"
pip install -r "featuretools-${FEATURETOOLS_VERSION}/test-requirements.txt"
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- run: |
source test_env/bin/activate
cd "featuretools-$(python setup.py --version)/"
pytest
- run: source dev_env/bin/activate && make -C docs/ -e "SPHINXOPTS=-W" clean html

"python-3.7":
working_directory: ~/featuretools
Expand All @@ -47,10 +80,29 @@ jobs:
steps:
- run: sudo apt update && sudo apt install -y graphviz
- checkout
- run: virtualenv venv
- run: source venv/bin/activate && make installdeps
- run: source venv/bin/activate && make lint
- run: source venv/bin/activate && make test
- run: virtualenv test_env && virtualenv dev_env
- run: |
source test_env/bin/activate
python setup.py sdist
tar -zxvf "dist/featuretools-$(python setup.py --version).tar.gz"
- run: |
source test_env/bin/activate
FEATURETOOLS_VERSION=$(python setup.py --version)
pip install -e "featuretools-${FEATURETOOLS_VERSION}/"
pip install -r "featuretools-${FEATURETOOLS_VERSION}/test-requirements.txt"
pip install "$(cat dev-requirements.txt | grep codecov)"
- run: source dev_env/bin/activate && make installdeps
- run: source dev_env/bin/activate && make lint
- run: |
source test_env/bin/activate
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

workflows:
version: 2
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ mock==2.0.0
pympler==0.5
pytest-xdist==1.26.1
pytest-cov==2.6.1
llvmlite==0.27.0
fastparquet>=0.1.6
graphviz>=0.8.4
s3fs>=0.1.5