-
Notifications
You must be signed in to change notification settings - Fork 160
104 lines (87 loc) · 2.81 KB
/
tests.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
97
98
99
100
101
102
103
104
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/codecov-action@v2.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Cleanup virtual env
if: always()
run: rm -rf env/