From 9a5a2de9c9eb601e90893133625015417272e45f Mon Sep 17 00:00:00 2001 From: wp19991 <46703189+wp19991@users.noreply.github.com> Date: Wed, 12 Jul 2023 16:36:22 +0800 Subject: [PATCH] add CI file --- .github/unit_tests_for_protobuf4.yml | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/unit_tests_for_protobuf4.yml diff --git a/.github/unit_tests_for_protobuf4.yml b/.github/unit_tests_for_protobuf4.yml new file mode 100644 index 0000000..a204686 --- /dev/null +++ b/.github/unit_tests_for_protobuf4.yml @@ -0,0 +1,39 @@ +name: test for protobuf4 + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + run-unit-tests-on-for-protobuf4: + + timeout-minutes: 60 + runs-on: ubuntu-latest + container: docker.io/library/ubuntu:latest + + steps: + - uses: actions/checkout@v2 + + - name: Install basic dependencies + run: | + apt-get update + apt-get install -yq wget gcc g++ python3.9 zlib1g-dev zip libuv1.dev + apt-get install -yq pip + + - name: Install python dependencies + run: | + python3 -m pip install virtualenv + python3 -m virtualenv -p python3 py3 + . py3/bin/activate + which python + pip install pytest torch cloudpickle cryptography + pip install "protobuf>=4.0" + pip install ray==2.4.0 + + - name: Build and test + run: | + . py3/bin/activate + pip install -e . -v + sh test.sh \ No newline at end of file