-
Notifications
You must be signed in to change notification settings - Fork 87
205 lines (198 loc) · 7.56 KB
/
python.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
name: Python checks
on:
push:
paths:
- .github/workflows/python.yml
- '**.py'
pull_request:
paths:
- .github/workflows/python.yml
- '**.py'
jobs:
black:
runs-on: ubuntu-latest
steps:
- name: Install black
run: python3 -m pip install black
- uses: actions/checkout@v2
- name: Run black
run: |
shopt -s globstar
python3 -m black --check **/*.py
pytest:
runs-on: ubuntu-latest
steps:
- name: Install pytest
run: python3 -m pip install pytest
- name: Install lxml
run: python3 -m pip install lxml
- uses: actions/checkout@v2
- name: Install requirements
run: python3 setup.py install --user # setuptools doesn't support querying 'install_requires' it seems, so install package to get dependencies
- name: Run tests
run: python3 -m pytest tests/
xodr_examples:
runs-on: ubuntu-latest
steps:
- name: Install lxml
run: python3 -m pip install lxml
- uses: actions/checkout@v2
- name: Install requirements
run: python3 setup.py install --user # setuptools doesn't support querying 'install_requires' it seems, so install package to get dependencies
- name: common_junction_creator
if: always()
run: python3 examples/xodr/common_junction_creator.py
- name: direct_junction_creator
if: always()
run: python3 examples/xodr/direct_junction_creator.py
- name: full_junction
if: always()
run: python3 examples/xodr/full_junction.py
- name: highway_example_with_merge_and_split
if: always()
run: python3 examples/xodr/highway_example_with_merge_and_split.py
- name: highway_example
if: always()
run: python3 examples/xodr/highway_example.py
- name: highway_exit_with_lane_types
if: always()
run: python3 examples/xodr/highway_exit_with_lane_types.py
- name: junction_trippel_twoway
if: always()
run: python3 examples/xodr/junction_trippel_twoway.py
- name: junction_with_signals
if: always()
run: python3 examples/xodr/junction_with_signals.py
- name: lane_number_change_merge
if: always()
run: python3 examples/xodr/lane_number_change_merge.py
- name: manual_add_of_geometries
if: always()
run: python3 examples/xodr/manual_add_of_geometries.py
- name: multiple_geometries_one_road_with_objects
if: always()
run: python3 examples/xodr/multiple_geometries_one_road_with_objects.py
- name: multiple_geometries_one_road
if: always()
run: python3 examples/xodr/multiple_geometries_one_road.py
- name: road_link_unequal_number_of_lanes
if: always()
run: python3 examples/xodr/road_link_unequal_number_of_lanes.py
- name: road_merge_w_lane_merge
if: always()
run: python3 examples/xodr/road_merge_w_lane_merge.py
- name: road_merge
if: always()
run: python3 examples/xodr/road_merge.py
- name: road_split_w_lane_split
if: always()
run: python3 examples/xodr/road_split_w_lane_split.py
- name: road_split
if: always()
run: python3 examples/xodr/road_split.py
- name: road_with_custom_lanes
if: always()
run: python3 examples/xodr/road_with_custom_lanes.py
- name: road_with_custom_roadmarkers
if: always()
run: python3 examples/xodr/road_with_custom_roadmarkers.py
- name: simple_road_with_objects
if: always()
run: python3 examples/xodr/simple_road_with_objects.py
- name: two_roads
if: always()
run: python3 examples/xodr/two_roads.py
- name: road_with_multiple_lane_widths
if: always()
run: python3 examples/xodr/road_with_multiple_lane_widths.py
- name: junction_with_varying_lane_widths
if: always()
run: python3 examples/xodr/junction_with_varying_lane_widths.py
- name: road_with_changing_lane_width
if: always()
run: python3 examples/xodr/road_with_changing_lane_width.py
- name: full_junction_with_LaneDef
if: always()
run: python3 examples/xodr/full_junction_with_LaneDef.py
xosc_examples:
runs-on: ubuntu-latest
steps:
- name: Install lxml
run: python3 -m pip install lxml
- uses: actions/checkout@v2
- name: Install requirements
run: python3 setup.py install --user # setuptools doesn't support querying 'install_requires' it seems, so install package to get dependencies
- name: Acceleration_condition
if: always()
run: python3 examples/xosc/Acceleration_condition.py
- name: catalog_example
if: always()
run: python3 examples/xosc/catalog_example.py
- name: end_of_road_reset_traffic
if: always()
run: python3 examples/xosc/end_of_road_reset_traffic.py
- name: multi_conditional_and_triggers
if: always()
run: python3 examples/xosc/multi_conditional_and_triggers.py
- name: multi_conditional_different_actions
if: always()
run: python3 examples/xosc/multi_conditional_different_actions.py
- name: multi_conditional_or_triggers
if: always()
run: python3 examples/xosc/multi_conditional_or_triggers.py
- name: multiple_maneuvers
if: always()
run: python3 examples/xosc/multiple_maneuvers.py
- name: one_action_example
if: always()
run: python3 examples/xosc/one_action_example.py
- name: parallel_distance_actions
if: always()
run: python3 examples/xosc/parallel_distance_actions.py
- name: ParameterValueDistribution
if: always()
run: python3 examples/xosc/ParameterValueDistribution.py
- name: route_in_crossing
if: always()
run: python3 examples/xosc/route_in_crossing.py
- name: Speed_condition
if: always()
run: python3 examples/xosc/Speed_condition.py
- name: Stop_on_offroad
if: always()
run: python3 examples/xosc/Stop_on_offroad.py
- name: syncronize_straight_example
if: always()
run: python3 examples/xosc/syncronize_straight_example.py
- name: trajectory_example
if: always()
run: python3 examples/xosc/trajectory_example.py
- name: withcontroller
if: always()
run: python3 examples/xosc/withcontroller.py
generator_examples:
runs-on: ubuntu-latest
steps:
- name: Install lxml
run: python3 -m pip install lxml
- uses: actions/checkout@v2
- name: Install requirements
run: python3 setup.py install --user # setuptools doesn't support querying 'install_requires' it seems, so install package to get dependencies
- name: CCRb
if: always()
run: python3 examples/generator/CCRb.py
- name: CCRm
if: always()
run: python3 examples/generator/CCRm.py
- name: CCRs
if: always()
run: python3 examples/generator/CCRs.py
- name: generate_from_main
if: always()
run: python3 examples/generator/generate_from_main.py
- name: generate_with_fixed_parameter_sets
if: always()
run: python3 examples/generator/generate_with_fixed_parameter_sets.py
- name: generate_with_permutations
if: always()
run: python3 examples/generator/generate_with_permutations.py