Merge branch 'ltl_configue' of github.com:bark-simulator/bark-ml into… #974
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: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: docker://barksim/bark-ml:latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setting up virtual environment | |
run: virtualenv -p python3 ./bark_ml/python_wrapper/venv --system-site-packages | |
- name: Entering the virtual python environment.. | |
run: . ./bark_ml/python_wrapper/venv/bin/activate | |
- name: Installing and upgrading pip.. | |
run: pip install --upgrade pip | |
- name: Installing and upgrading pip packages.. | |
run: pip install --upgrade --trusted-host pypi.org -r ./utils/docker/installers/requirements.txt | |
- name: Installing Tensorflow packages.. | |
run: pip install tensorflow-addons==0.11.2 graph-nets==1.1.0 ray==1.0.0 | |
- name: Installing Pytorch venv.. | |
run: pip install --target=./bark_ml/python_wrapper/venv/lib/python3.7/site-packages torch==1.9.0+cpu torchvision -f https://download.pytorch.org/whl/torch_stable.html | |
- name: Installing Pytorch global.. | |
run: pip install torch==1.9.0+cpu torchvision -f https://download.pytorch.org/whl/torch_stable.html | |
- name: Add torch environment variable | |
run: export LD_LIBRARY_PATH=./bark_ml/python_wrapper/venv/lib/python3.7/site-packages/torch/lib/ | |
- name: reinstall protobuf3.20.*. | |
run: pip install protobuf==3.20.* | |
- name: Running tests | |
run: bazel test //bark_ml:unit_tests | |