-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (63 loc) · 2.09 KB
/
automated-testing.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
name: automated-testing
on: push
jobs:
generate-scenario-job-matrix:
runs-on: self-hosted
outputs:
matrix: ${{ steps.generate.outputs.matrix }}
name: generate scenario job matrix
steps:
- uses: actions/checkout@v4
- id: generate
uses: ./.github/actions/generate-job-matrix
with:
starting-point: ./utils/scenarios
query-string: '*.xosc'
exclude-string: '*/catalogs/*'
evaluate-required-scenarios:
needs: generate-scenario-job-matrix
runs-on: self-hosted
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.generate-scenario-job-matrix.outputs.matrix) }}
name: Eval ${{ matrix.filename }}
steps:
- run: rm -rf *
- uses: actions/checkout@v4
- uses: ./.github/actions/evaluate-scenario
with:
scenario-folder-path: ${{ matrix.filedir }}
scenario-file-name: ${{ matrix.filename }}
simulator-image: rwthika/carla-simulator:server
simulator-offscreen: true
generate-opt-scenario-job-matrix:
needs: evaluate-required-scenarios
runs-on: self-hosted
outputs:
opt-matrix: ${{ steps.generate-opt.outputs.matrix }}
name: generate optional scenario job matrix
steps:
- uses: actions/checkout@v4
- id: generate-opt
uses: ./.github/actions/generate-job-matrix
with:
starting-point: ./utils/scenarios
query-string: '*.xosc.opt'
exclude-string: '*/catalogs/*'
evaluate-optional-scenarios:
needs: generate-opt-scenario-job-matrix
runs-on: self-hosted
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.generate-opt-scenario-job-matrix.outputs.opt-matrix) }}
name: Eval ${{ matrix.filename }}
steps:
- run: rm -rf *
- uses: actions/checkout@v4
- uses: ./.github/actions/evaluate-scenario
continue-on-error: true
with:
scenario-folder-path: ${{ matrix.filedir }}
scenario-file-name: ${{ matrix.filename }}
simulator-image: rwthika/carla-simulator:server
simulator-offscreen: true