-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (40 loc) · 1.14 KB
/
build-and-test-mock.yaml
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
name: test-mock
on:
push:
branches:
- main
- develop
paths-ignore:
- "docs/**"
- "README.md"
pull_request:
paths-ignore:
- "docs/**"
- "README.md"
jobs:
test-mock:
runs-on: ubuntu-20.04
continue-on-error: true
strategy:
matrix:
python-version: ["3.7.11", "3.8", "3.9", "3.10"]
lsim-task:
[test.perception_lsim, test.sensing_lsim, test.perception_lsim2d]
visualization-task: [test.eda]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python -
echo "$HOME/.local/bin" >> $GITHUB_PATH
poetry install
- name: Test perception lsim
run: |
cd perception_eval
poetry run python -m ${{ matrix.lsim-task }} test/sample_data/ --use_tmpdir
poetry run python -m ${{ matrix.visualization-task }} test/sample_data/