forked from intel-analytics/ipex-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
57 lines (53 loc) · 1.96 KB
/
action.yml
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
name: 'Run BigDL NB Python AppTests part1'
description: 'Run BigDL NB Python AppTests part1'
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7.10'
- name: Install dependencies
shell: bash
run: |
dpkg --configure -a
apt-get update
apt-get install -y zip
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools==58.0.4
- name: Setup env
shell: bash
run: |
if [ -d "/opt/conda/envs/py37" ];then
rm -rf /opt/conda/envs/py37
fi
conda create -n py37 -y python==3.7.10 setuptools==58.0.4 -c ${GONDOLIN_CONDA_CHANNEL} --override-channels
env:
BIGDL_ROOT: ${{ github.workspace }}
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
- name: Run test
shell: bash
run: |
set -x
# set -e
export CLASSPATH=.:${JAVA_HOME}/lib:${JAVA_HOME}/jre/lib:${JAVA_HOME}/lib/tools.jar:${JAVA_HOME}/lib/dt.jar
export PATH=${JAVA_HOME}/bin/:${JAVA_HOME}/jre/bin:${PATH}
export PATH=/opt/hostedtoolcache/maven/3.6.3/x64:$PATH
export SPARK_LOCAL_HOSTNAME=localhost
export MAVEN_OPTS="-XX:MaxPermSize=3G -Xmx100G -XX:ReservedCodeCacheSize=512m"
export _JAVA_OPTIONS="-Xmx100G -XX:MaxPermSize=3G"
export MASTER=local[4]
export KERAS_BACKEND=tensorflow
source activate py37
apt install libgl1-mesa-glx ffmpeg libsm6 libxext6 -y
pip install --upgrade pip
pip install jupyter bigdl imageio==2.27.0 matplotlib seaborn ray h5py
chmod a+x apps/ipynb2py.sh
chmod a+x apps/run-app-tests-pip.sh
bash apps/run-app-tests-pip.sh 1
source deactivate
env:
BIGDL_ROOT: ${{ github.workspace }}
BIGDL_HOME: ${{ github.workspace }}
ANALYTICS_ZOO_ROOT: ${{ github.workspace }}
ANALYTICS_ZOO_HOME: ${{ github.workspace }}