Skip to content

Add trunk control for Tiago #50

Add trunk control for Tiago

Add trunk control for Tiago #50

Workflow file for this run

name: Tests
on: [pull_request, workflow_dispatch]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
test:
runs-on: [self-hosted, linux, gpu]
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: true
path: igibson
- name: Add CUDA to env
run: echo "/usr/local/cuda/bin" >> $GITHUB_PATH
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: "3.8"
architecture: x64
- name: Create virtual env
run: python -m venv env
- name: Install dev requirements
working-directory: igibson
run: |
source ../env/bin/activate
pip install -r requirements-dev.txt
- name: Install
working-directory: igibson
run: |
source ../env/bin/activate
pip install -e .
- name: Uninstall pip bddl
working-directory: igibson
run: |
source ../env/bin/activate
pip uninstall -y bddl
- name: Checkout BDDL
uses: actions/checkout@v2
with:
repository: StanfordVL/bddl
ref: 7fba5f13cc9f3c83dcce9ef4b014903bbcd6e34f
path: bddl
submodules: recursive
lfs: true
- name: Install BDDL
working-directory: bddl
run: |
source ../env/bin/activate
pip install -e .
- name: Link Dataset
working-directory: igibson
run: ln -s /scr/ig-data igibson/data
# The below method of checking out ig-dataset is currently unused due to poor speed.
# - name: Create data directory
# run: mkdir -p igibson/igibson/data
#
# - name: Checkout ig_dataset
# uses: actions/checkout@v2
# with:
# repository: StanfordVL/ig_dataset
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # PAT is required since this is a different repo
# path: igibson/igibson/data/ig_dataset
# submodules: recursive
# lfs: true
#
# - name: Checkout ig_assets
# uses: actions/checkout@v2
# with:
# repository: StanfordVL/ig_assets
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # PAT is required since this is a different repo
# path: igibson/igibson/data/assets
# submodules: recursive
# lfs: true
- name: Run tests
working-directory: igibson
run: |
source ../env/bin/activate
pytest
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Cleanup virtual env
if: always()
run: rm -rf env/