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] Fix TFX related Travis tests #2521

Merged
merged 1 commit into from
Nov 1, 2019
Merged
Changes from all commits
Commits
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
29 changes: 3 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ matrix:
- cd $TRAVIS_BUILD_DIR/tfx/tfx/orchestration/kubeflow
- python3 kubeflow_dag_runner_test.py
- cd $TRAVIS_BUILD_DIR/tfx/tfx/examples/chicago_taxi_pipeline
- python3 taxi_pipeline_kubeflow_test.py
- python3 taxi_pipeline_kubeflow_gcp_test.py
- python3 taxi_pipeline_kubeflow_local_test.py

# Visualization test
- cd $TRAVIS_BUILD_DIR/backend/src/apiserver/visualization
Expand Down Expand Up @@ -139,31 +140,7 @@ matrix:
before_install:
- export PYTHONPATH=$PYTHONPATH:/home/travis/.local/lib/python3.7/site-packages/
install: *0
script:
# DSL tests
- cd $TRAVIS_BUILD_DIR/sdk/python
- python3 setup.py develop
- cd $TRAVIS_BUILD_DIR # Changing the current directory to the repo root for correct coverall paths
- coverage run --source=kfp --append sdk/python/tests/dsl/main.py
- coverage run --source=kfp --append sdk/python/tests/compiler/main.py
- coverage run --source=kfp --append -m unittest discover --verbose --start-dir sdk/python/tests --top-level-directory=sdk/python
- coveralls
# Currently TFX kubeflow test is not compatible with Python 3.7
# Visualization test
- cd $TRAVIS_BUILD_DIR/backend/src/apiserver/visualization
- python3 test_exporter.py
- python3 test_server.py

# Test loading all component.yaml definitions
- $TRAVIS_BUILD_DIR/components/test_load_all_components.sh

# Component SDK tests
- cd $TRAVIS_BUILD_DIR/components/gcp/container/component_sdk/python
- ./run_test.sh

# Sample test unittests.
- cd $TRAVIS_BUILD_DIR/test/sample-test/unittests
- python3 -m unittest utils_tests.py
script: *1
- name: "Lint Python code with flake8"
language: python
python: "3.7"
Expand Down