forked from intel-analytics/ipex-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add orca ray python test to github action (intel-analytics#5550)
* add orca ray python test to github action * update * update * update * update * update * update
- Loading branch information
1 parent
1da3230
commit 0c8cac9
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
.github/actions/orca-python-ray-py37-spark3-action/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: 'Run Orca Python Ray Py37 Spark3' | ||
description: 'Run Orca Python Ray Py37 Spark3' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Env | ||
shell: bash | ||
run: | | ||
apt-get update | ||
apt-get install wget | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools==58.0.4 | ||
pip uninstall -y bigdl-friesian bigdl-friesian-spark3 bigdl-dllib bigdl-dllib-spark3 bigdl-orca pyspark bigdl-orca-spark3 bigdl-chronos bigdl-chronos-spark3 bigdl-friesian bigdl-friesian-spark3 | ||
pip uninstall -r python/orca/dev/example/requirements-ray.txt -y | ||
pip install -i https://pypi.org/simple --pre --upgrade bigdl-orca-spark3 | ||
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r python/orca/dev/example/requirements-ray.txt | ||
pip install pytest | ||
pip uninstall -y opencv-python-headless | ||
pip install opencv-python-headless | ||
- name: Run Test | ||
shell: bash | ||
run: | | ||
export SPARK_LOCAL_HOSTNAME=localhost | ||
chmod a+x python/orca/dev/test/run-pytests-ray | ||
python/orca/dev/test/run-pytests-ray | ||
env: | ||
BIGDL_ROOT: ${{ github.workspace }} | ||
ANALYTICS_ZOO_ROOT: ${{ github.workspace }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,6 @@ argparse | |
Pillow | ||
pyarrow==4.0.1 | ||
h5py==2.10.0 | ||
fsspec==2021.9.0 | ||
scikit-optimize==0.8.1 | ||
pandas==1.1.5 |