3737 python -m pip install codecov
3838 python -m pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp37-cp37m-manylinux2014_x86_64.whl
3939 if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
40- HOROVOD_WITH_GLOO=1 HOROVOD_WITHOUT_MPI=1 HOROVOD_WITHOUT_MXNET=1 pip install git+https://github.com/horovod/horovod.git
4140 - name : Install package
4241 run : |
4342 python -m pip install -e .
@@ -124,7 +123,6 @@ jobs:
124123 python -m pip install codecov
125124 python -m pip install -U ray
126125 if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
127- HOROVOD_WITH_GLOO=1 HOROVOD_WITHOUT_MPI=1 HOROVOD_WITHOUT_MXNET=1 pip install -U git+https://github.com/horovod/horovod.git
128126 - name : Install package
129127 run : |
130128 python -m pip install -e .
@@ -193,4 +191,35 @@ jobs:
193191 pushd ray_lightning/tests
194192 echo "running examples with Ray Client 1" && python -m pytest -v --durations=0 -x test_client.py
195193 echo "running examples with Ray Client 2" && python -m pytest -v --durations=0 -x test_client_2.py
196- echo "running examples with Ray Client 3" && python -m pytest -v --durations=0 -x test_client_3.py
194+ echo "running examples with Ray Client 3" && python -m pytest -v --durations=0 -x test_client_3.py
195+
196+ test_linux_compat :
197+ # Test compatibility when optional libraries are not installed.
198+ runs-on : ubuntu-latest
199+ timeout-minutes : 40
200+ steps :
201+ - uses : actions/checkout@v2
202+ - name : Set up Python 3.7
203+ uses : actions/setup-python@v2
204+ with :
205+ python-version : 3.7
206+ - name : Install dependencies
207+ run : |
208+ python -m pip install --upgrade pip
209+ python -m pip install --upgrade setuptools
210+ python -m pip install codecov
211+ python -m pip install -U ray
212+ if [ -f requirements-test.txt ]; then python -m pip install -r requirements-test.txt; fi
213+ HOROVOD_WITH_GLOO=1 HOROVOD_WITHOUT_MPI=1 HOROVOD_WITHOUT_MXNET=1 pip install -U git+https://github.com/horovod/horovod.git
214+ - name : Uninstall unavailable dependencies
215+ run : |
216+ # Uninstall Tune
217+ pip uninstall -y tabulate
218+ - name : Install package
219+ run : |
220+ python -m pip install -e .
221+ - name : Test with Pytest
222+ run : |
223+ pushd ray_lightning/tests
224+ python -m pytest -v --durations=0 -x test_ddp.py
225+ python -m pytest -v --durations=0 -x test_horovod.py
0 commit comments