forked from facebookresearch/home-robot
-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (96 loc) · 2.79 KB
/
main.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: facebookresearch/home-robot/main
on:
push:
branches:
- main
jobs:
lint:
defaults:
run:
working-directory: "~/home-robot"
runs-on: ubuntu-latest
container:
image: python:3.8
steps:
- uses: actions/[email protected]
- name: Running precommit checks
run: |
pip install pre-commit
pre-commit install-hooks
pre-commit run --all-files
home_robot:
defaults:
run:
working-directory: "~/home-robot"
runs-on: ubuntu-latest
env:
FPS_THRESHOLD: 900
steps:
- uses: actions/[email protected]
- name: Install system deps
run: |
sudo apt-get update || true
sudo apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
vim \
ca-certificates \
g++ \
python-dev autotools-dev libicu-dev libbz2-dev \
libboost-all-dev \
unzip || true
- uses: "./.github/actions/conda_env_setup"
- name: Install libraries and run tests
run: |
conda activate ~/env_home_robot
pip install -e src/home_robot
cd tests/home_robot
pytest .
home_robot_sim:
defaults:
run:
working-directory: "~/home-robot"
runs-on: ubuntu-latest
env:
FPS_THRESHOLD: 900
steps:
- uses: actions/[email protected]
- name: Install system deps
run: |
sudo apt-get update || true
sudo apt-get install -y --no-install-recommends \
build-essential \
git \
curl \
vim \
ca-certificates \
libbullet-dev \
libjpeg-dev \
libglm-dev \
libegl1-mesa-dev \
xorg-dev \
freeglut3-dev \
pkg-config \
wget \
zip \
libhdf5-dev \
unzip || true
- name: Sync submodules
run: git submodule sync && git submodule update --init src/third_party/habitat-lab
- uses: "./.github/actions/conda_env_setup"
- name: Install home-robot-sim dependencies & download data
run: |
conda activate ~/env_home_robot
mamba env update -f src/home_robot_sim/environment.yml
pip install -e src/third_party/habitat-lab
python -m habitat_sim.utils.datasets_download --uids mp3d_example_scene --data-path data/
mkdir -p tests/home_robot_sim/data/scene_datasets/mp3d_example/mp3d
mv data/scene_datasets/mp3d_example/17DRP5sb8fy tests/home_robot_sim/data/scene_datasets/mp3d_example/mp3d
- name: Install libraries and run tests
run: |
conda activate ~/env_home_robot
pip install -e src/home_robot
pip install -e src/home_robot_sim
cd tests/home_robot_sim
pytest .