This repository was archived by the owner on Nov 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
226 lines (215 loc) · 8.97 KB
/
test.yaml
File metadata and controls
226 lines (215 loc) · 8.97 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
name: pytest on push
on: [push, pull_request]
jobs:
test_lint:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install codecov
python -m pip install -U -r requirements-lint.txt
- name: Run format script
run: |
./format.sh --all
test_linux_ray_master_1:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install codecov
python -m pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp37-cp37m-manylinux2014_x86_64.whl
if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
- name: Install package
run: |
python -m pip install -e .
- name: Test with Pytest
run: |
pushd ray_lightning/tests
python -m pytest -v --durations=0 -x test_ddp.py
python -m pytest -v --durations=0 -x test_ddp_sharded.py
test_linux_ray_master_2:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install codecov
python -m pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp37-cp37m-manylinux2014_x86_64.whl
if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
HOROVOD_WITH_GLOO=1 HOROVOD_WITHOUT_MPI=1 HOROVOD_WITHOUT_MXNET=1 pip install git+https://github.com/horovod/horovod.git
- name: Install package
run: |
python -m pip install -e .
- name: Test with Pytest
run: |
pushd ray_lightning/tests
python -m pytest -v --durations=0 -x test_horovod.py
python -m pytest -v --durations=0 -x test_tune.py
test_linux_ray_master_examples:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install codecov
python -m pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp37-cp37m-manylinux2014_x86_64.whl
if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
HOROVOD_WITH_GLOO=1 HOROVOD_WITHOUT_MPI=1 HOROVOD_WITHOUT_MXNET=1 pip install git+https://github.com/horovod/horovod.git
- name: Install package
run: |
python -m pip install -e .
- name: Run Examples
run: |
pushd ray_lightning/examples
echo "running ray_ddp_example.py" && python ray_ddp_example.py --smoke-test
echo "running ray_ddp_example.py with Tune" && python ray_ddp_example.py --smoke-test --tune
echo "running ray_ddp_tune.py" && python ray_ddp_tune.py --smoke-test
echo "running ray_horovod_example.py" && python ray_horovod_example.py --smoke-test
echo "running ray_horovod_example.py with Tune" && python ray_horovod_example.py --smoke-test --tune
popd
pushd ray_lightning/tests
echo "running examples with Ray Client 1" && python -m pytest -v --durations=0 -x test_client.py
echo "running examples with Ray Client 2" && python -m pytest -v --durations=0 -x test_client_2.py
echo "running examples with Ray Client 3" && python -m pytest -v --durations=0 -x test_client_3.py
test_linux_ray_release_1:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install codecov
python -m pip install -U ray
if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
- name: Install package
run: |
python -m pip install -e .
- name: Test with Pytest
run: |
pushd ray_lightning/tests
python -m pytest -v --durations=0 -x test_ddp.py
python -m pytest -v --durations=0 -x test_ddp_sharded.py
python -m pytest -v --durations=0 -x test_lightning_cli.py
test_linux_ray_release_2:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install codecov
python -m pip install -U ray
if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
HOROVOD_WITH_GLOO=1 HOROVOD_WITHOUT_MPI=1 HOROVOD_WITHOUT_MXNET=1 pip install -U git+https://github.com/horovod/horovod.git
- name: Install package
run: |
python -m pip install -e .
- name: Test with Pytest
run: |
pushd ray_lightning/tests
python -m pytest -v --durations=0 -x test_horovod.py
python -m pytest -v --durations=0 -x test_tune.py
test_linux_ray_release_examples:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install codecov
python -m pip install -U ray
if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
HOROVOD_WITH_GLOO=1 HOROVOD_WITHOUT_MPI=1 HOROVOD_WITHOUT_MXNET=1 pip install -U git+https://github.com/horovod/horovod.git
- name: Install package
run: |
python -m pip install -e .
- name: Run Examples
run: |
pushd ray_lightning/examples
echo "running ray_ddp_example.py" && python ray_ddp_example.py --smoke-test
echo "running ray_ddp_example.py with Tune" && python ray_ddp_example.py --smoke-test --tune
echo "running ray_ddp_tune.py" && python ray_ddp_tune.py --smoke-test
echo "running ray_horovod_example.py" && python ray_horovod_example.py --smoke-test
echo "running ray_horovod_example.py with Tune" && python ray_horovod_example.py --smoke-test --tune
popd
pushd ray_lightning/tests
echo "running examples with Ray Client 1" && python -m pytest -v --durations=0 -x test_client.py
echo "running examples with Ray Client 2" && python -m pytest -v --durations=0 -x test_client_2.py
echo "running examples with Ray Client 3" && python -m pytest -v --durations=0 -x test_client_3.py
test_linux_compat:
# Test compatibility when optional libraries are not installed.
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install codecov
python -m pip install -U ray
if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
HOROVOD_WITH_GLOO=1 HOROVOD_WITHOUT_MPI=1 HOROVOD_WITHOUT_MXNET=1 pip install -U git+https://github.com/horovod/horovod.git
- name: Uninstall unavailable dependencies
run: |
# Uninstall Tune
pip uninstall -y tabulate
- name: Install package
run: |
python -m pip install -e .
- name: Test with Pytest
run: |
pushd ray_lightning/tests
python -m pytest -v --durations=0 -x test_ddp.py
python -m pytest -v --durations=0 -x test_horovod.py