-
Notifications
You must be signed in to change notification settings - Fork 190
74 lines (71 loc) · 2.66 KB
/
ci-base-tests-mac.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
name: SMARTS CI Base Tests Mac
on:
workflow_run:
workflows: ["SMARTS CI Auto Commit Mac"]
types:
- completed
workflow_dispatch:
env:
venv_dir: .venv
jobs:
base-tests-mac:
runs-on: macos-11
strategy:
matrix:
tests:
- ./cli
- ./envision
- ./examples/tests --ignore=./examples/tests/test_learning.py
- ./smarts/sstudio
- ./smarts/env/tests/test_rllib_hiway_env.py
- ./smarts/core --nb-exec-timeout 65536 --ignore=./smarts/core/tests/test_notebook.py
- ./smarts/env --ignore=./smarts/env/tests/test_rllib_hiway_env.py
- ./smarts/ray
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: master
- name: Setup Python
run: |
brew update
brew install [email protected]
brew unlink [email protected]
brew link --force --overwrite [email protected]
- name: Setup SUMO
run: |
brew install xquartz
brew tap dlr-ts/sumo
brew install sumo spatialindex
brew install geos
- name: Install dependencies
run: |
python3.8 -m venv ${{env.venv_dir}}
. ${{env.venv_dir}}/bin/activate
pip install --upgrade pip
pip install wheel==0.38.4
pip install -r utils/setup/mac_requirements.txt
pip install -e .[camera_obs,opendrive,rllib,test,test_notebook,torch,train,argoverse,envision,sumo]
if echo ${{matrix.tests}} | grep -q -e "/env"; then pip install -e .[rllib]; fi
if echo ${{matrix.tests}} | grep -q -e "/examples"; then pip install -e .[examples,rllib]; fi
if echo ${{matrix.tests}} | grep -q "/ray"; then pip install -e .[ray]; fi
- name: Run smoke tests
run: |
. ${{env.venv_dir}}/bin/activate
export SUMO_HOME="/usr/local/opt/sumo/share/sumo"
open -g -a XQuartz.app
make build-all-scenarios
PYTHONPATH=$PWD PYTHONHASHSEED=42 pytest -v \
--doctest-modules \
-n auto \
--ignore-glob="**/waymo_map.py" \
--ignore-glob="**/argoverse_map.py" \
${{matrix.tests}} \
--ignore=./smarts/core/tests/test_smarts_memory_growth.py \
--ignore=./smarts/env/tests/test_benchmark.py \
--ignore=./smarts/env/tests/test_frame_stack.py \
--ignore=./smarts/env/tests/test_determinism.py \
--ignore=./smarts/core/tests/test_renderers.py \
--ignore=./smarts/core/tests/test_smarts.py \
--ignore=./smarts/core/tests/test_env_frame_rate.py \
--ignore=./smarts/core/tests/test_observations.py