Skip to content

Doc/automated testing (#9) #19

Doc/automated testing (#9)

Doc/automated testing (#9) #19

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