18
18
fail-fast : false
19
19
matrix :
20
20
os : [ubuntu-latest]
21
- python-version : [3.8-kubernetes, 3.8-hadoop, 3.8-ray, 3.8-ray-dag, 3.8-vineyard, 3.8-dask]
21
+ python-version : [3.8-kubernetes, 3.8-hadoop, 3.8-ray, 3.8-ray-deploy, 3.8-ray- dag, 3.8-vineyard, 3.8-dask]
22
22
include :
23
23
- { os: ubuntu-latest, python-version: 3.8-kubernetes, no-common-tests: 1,
24
24
no-deploy : 1, with-kubernetes: "with Kubernetes" }
28
28
no-deploy : 1, with-vineyard: "with vineyard" }
29
29
- { os: ubuntu-latest, python-version: 3.8-ray, no-common-tests: 1,
30
30
no-deploy : 1, with-ray: "with ray" }
31
+ - { os: ubuntu-latest, python-version: 3.8-ray-deploy, no-common-tests: 1,
32
+ no-deploy : 1, with-ray-deploy: "with ray deploy" }
31
33
- { os: ubuntu-latest, python-version: 3.8-ray-dag, no-common-tests: 1,
32
34
no-deploy : 1, with-ray-dag: "with ray dag" }
33
35
- { os: ubuntu-latest, python-version: 3.8-dask, no-common-tests: 1,
53
55
WITH_KUBERNETES : ${{ matrix.with-kubernetes }}
54
56
WITH_VINEYARD : ${{ matrix.with-vineyard }}
55
57
WITH_RAY : ${{ matrix.with-ray }}
58
+ WITH_RAY_DEPLOY : ${{ matrix.with-ray-deploy }}
56
59
WITH_RAY_DAG : ${{ matrix.with-ray-dag }}
57
60
RUN_DASK : ${{ matrix.run-dask }}
58
61
NO_COMMON_TESTS : ${{ matrix.no-common-tests }}
93
96
sudo mv /tmp/etcd-download-test/etcdctl /usr/local/bin/
94
97
rm -fr /tmp/etcd-$ETCD_VER-linux-amd64.tar.gz /tmp/etcd-download-test
95
98
fi
96
- if [ -n "$WITH_RAY" ] || [ -n "$WITH_RAY_DAG" ]; then
99
+ if [ -n "$WITH_RAY" ] || [ -n "$WITH_RAY_DAG" ] || [ -n "$WITH_RAY_DEPLOY" ] ; then
97
100
pip install ray[default]==1.9.2 "protobuf<4"
98
101
pip install "xgboost_ray==0.1.5" "xgboost<1.6.0"
99
102
fi
@@ -110,6 +113,7 @@ jobs:
110
113
WITH_CYTHON : ${{ matrix.with-cython }}
111
114
WITH_VINEYARD : ${{ matrix.with-vineyard }}
112
115
WITH_RAY : ${{ matrix.with-ray }}
116
+ WITH_RAY_DEPLOY : ${{ matrix.with-ray-deploy }}
113
117
WITH_RAY_DAG : ${{ matrix.with-ray-dag }}
114
118
RUN_DASK : ${{ matrix.run-dask }}
115
119
NO_COMMON_TESTS : ${{ matrix.no-common-tests }}
@@ -144,13 +148,31 @@ jobs:
144
148
coverage combine build/ && coverage report
145
149
fi
146
150
if [ -n "$WITH_RAY" ]; then
147
- pytest $PYTEST_CONFIG --durations=0 --timeout=200 -v -s -m ray
151
+ pytest $PYTEST_CONFIG --durations=0 --timeout=200 -v -s --ignore=mars/deploy/oscar/ - m ray
148
152
coverage report
149
153
fi
154
+ if [ -n "$WITH_RAY_DEPLOY" ]; then
155
+ pytest $PYTEST_CONFIG --durations=0 --timeout=200 -v -s mars/deploy/oscar/tests/test_ray.py -m ray
156
+ mv .coverage build/.coverage.test_ray.file
157
+ pytest $PYTEST_CONFIG --durations=0 --timeout=200 -v -s mars/deploy/oscar/tests/test_ray_client.py -m ray
158
+ mv .coverage build/.coverage.test_ray_client.file
159
+ pytest $PYTEST_CONFIG --durations=0 --timeout=200 -v -s mars/deploy/oscar/tests/test_ray_fault_injection.py -m ray
160
+ mv .coverage build/.coverage.test_ray_fault_injection.file
161
+ pytest $PYTEST_CONFIG --durations=0 --timeout=200 -v -s mars/deploy/oscar/tests/test_ray_scheduling.py -m ray
162
+ mv .coverage build/.coverage.test_ray_scheduling.file
163
+
164
+ coverage combine build/ && coverage report
165
+ fi
150
166
if [ -n "$WITH_RAY_DAG" ]; then
151
167
export MARS_CI_BACKEND=ray
152
- pytest $PYTEST_CONFIG --durations=0 --timeout=600 -v -s -m ray_dag
153
- coverage report
168
+ pytest $PYTEST_CONFIG --durations=0 --timeout=200 -v -s -m ray_dag
169
+ mv .coverage build/.coverage.ray_dag.file
170
+ pytest $PYTEST_CONFIG --durations=0 --timeout=200 -v -s mars/deploy/oscar/tests/test_ray_dag.py
171
+ mv .coverage build/.coverage.test_ray_dag.file
172
+ pytest $PYTEST_CONFIG --durations=0 --timeout=200 -v -s mars/deploy/oscar/tests/test_ray_dag_failover.py
173
+ mv .coverage build/.coverage.test_ray_dag_failover.file
174
+
175
+ coverage combine build/ && coverage report
154
176
fi
155
177
if [ -n "$RUN_DASK" ]; then
156
178
pytest $PYTEST_CONFIG mars/contrib/dask/tests/test_dask.py
0 commit comments