upgrade python version #236
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
name: ubuntu-building | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
env: | ||
OSS_HOST: oss-us-west-1.aliyuncs.com | ||
OSS_BUCKET: ray-mobius-us | ||
OSS_ID: ${{ secrets.OSS_ID }} | ||
OSS_KEY: ${{ secrets.OSS_KEY }} | ||
LC_ALL: en_US.UTF-8 | ||
LANG: en_US.UTF-8 | ||
jobs: | ||
streaming-ubuntu-pipeline: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-20.04 | ||
container: docker.io/library/ubuntu:20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install basics | ||
run: | | ||
apt-get update | ||
apt-get install -yq software-properties-common | ||
add-apt-repository -y ppa:deadsnakes/ppa | ||
apt-get install -yq wget gcc g++ openjdk-8-jdk maven python3.8 zlib1g-dev zip git pip | ||
apt install python3.10 python3.10-venv python3.10-dev | ||
- name: Install bazel | ||
run: | | ||
sh -c "bash scripts/install-bazel.sh" | ||
- name: Install OSS | ||
run: | | ||
sh -c "bash scripts/ossutils.sh install" | ||
- name: Install ray wheel | ||
run: | | ||
python3.10 -m pip install virtualenv | ||
python3.10 -m virtualenv -p python3.10 py3 | ||
. py3/bin/activate | ||
pip install pytest | ||
sh -c "bash scripts/install-ray.sh" | ||
pip install "protobuf<4" | ||
- name: Streaming python test | ||
run: sh -c "bash streaming/buildtest.sh --test_categories=streaming_python" | ||
# - name: Streaming java test | ||
# run: sh -c "bash streaming/buildtest.sh --test_categories=streaming_java" | ||
- name: Streaming cpp test | ||
run: sh -c "bash streaming/buildtest.sh --test_categories=streaming_cpp" |