Skip to content

Commit

Permalink
Added parallel testing for python
Browse files Browse the repository at this point in the history
  • Loading branch information
axsaucedo authored and seldondev committed Jul 20, 2020
1 parent 320cbd7 commit f098f0a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
33 changes: 24 additions & 9 deletions jenkins-x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,30 @@ pipelineConfig:
sh: "./add-pr-build-comment"
- name: build-and-test
parallel:
- name: test-python
steps:
- name: test-python
command: make
args:
- -C python
- update_package
- install_dev
- test
- name: test-python-all
command: make
args:
- -C python
- update_package
- install_dev
- test
- TOX_TEST=all
- name: test-python-all
command: make
args:
- -C python
- update_package
- install_dev
- test
- TOX_TEST=gcs
- name: test-python-all
command: make
args:
- -C python
- update_package
- install_dev
- test
- TOX_TEST=tensorflow
- name: seldon-operator
steps:
- name: test-operator
Expand Down
5 changes: 3 additions & 2 deletions python/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
SELDON_CORE_DIR=..
VERSION := $(shell cat ../version.txt)

TOX_TEST := "all" # Specify which tox test run when running python tests

.PHONY: get_apis
get_apis:
# Protobuf
Expand Down Expand Up @@ -65,13 +67,12 @@ uninstall:

.PHONY: test
test:
tox
tox $(TOX_TEST)

.PHONY: type_check
type_check:
mypy --ignore-missing-imports --no-strict-optional seldon_core

.PHONY: build_pypi
build_pypi:
python setup.py sdist bdist_wheel

Expand Down

0 comments on commit f098f0a

Please sign in to comment.