-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (41 loc) · 1.12 KB
/
build-and-test.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
47
name: build-and-test
on:
push:
branches:
- main
- develop
paths-ignore:
- "docs/**"
- "README.md"
pull_request:
paths-ignore:
- "docs/**"
- "README.md"
types: [opened, edited, synchronize]
env:
POETRY_VERSION: '1.5.1'
jobs:
build-and-test:
runs-on: ubuntu-20.04
timeout-minutes: 30
continue-on-error: true
strategy:
matrix:
python-version: ["3.7.11", "3.8", "3.10", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install
with:
python-version: ${{ matrix.python-version }}
- name: Run unittest
run: |
cd perception_eval
poetry run python -m pytest
- name: Run mock test
run: |
cd perception_eval
poetry run python -m test.perception_lsim test/sample_data/ --use_tmpdir
poetry run python -m test.perception_lsim2d test/sample_data/ --use_tmpdir
poetry run python -m test.sensing_lsim test/sample_data/ --use_tmpdir
poetry run python -m test.eda test/sample_data/