forked from StanfordVL/OmniGibson
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.38 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
name: Tests
on:
pull_request:
push:
branches:
- og-develop
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
test:
name: Run Tests
runs-on: [self-hosted, linux, gpu, dataset-enabled]
defaults:
run:
shell: micromamba run -n omnigibson /bin/bash -leo pipefail {0}
steps:
- name: Fix home
run: echo "HOME=/root" >> $GITHUB_ENV
- name: Checkout source
uses: actions/checkout@v2
with:
submodules: true
path: omnigibson-src
- name: Install dev requirements
working-directory: omnigibson-src
run: pip install -r requirements-dev.txt
- name: Install
working-directory: omnigibson-src
run: pip install -e .
- name: Run tests
working-directory: omnigibson-src
run: pytest --junitxml=results.xml
- name: Test Report
uses: dorny/test-reporter@v1
with:
name: Test Results
working-directory: omnigibson-src
path: results.xml
reporter: java-junit
fail-on-error: 'true'
fail-on-empty: 'true'
# - name: Upload coverage to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}