mirror of
https://github.com/infiniteCable2/opendbc.git
synced 2026-04-06 05:53:54 +08:00
CI for the people, but in opendbc (#3163)
This commit is contained in:
5
.github/workflows/tests.yml
vendored
5
.github/workflows/tests.yml
vendored
@@ -122,8 +122,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: opendbc_repo
|
path: opendbc_repo
|
||||||
- uses: ./.github/workflows/setup-with-retry
|
- run: ./tools/op.sh setup
|
||||||
id: setup-step
|
|
||||||
- name: Cache test routes
|
- name: Cache test routes
|
||||||
id: routes-cache
|
id: routes-cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@@ -133,7 +132,7 @@ jobs:
|
|||||||
- name: Build openpilot
|
- name: Build openpilot
|
||||||
run: scons -j$(nproc) common/ cereal/ selfdrive/pandad/ msgq_repo/ opendbc_repo
|
run: scons -j$(nproc) common/ cereal/ selfdrive/pandad/ msgq_repo/ opendbc_repo
|
||||||
- name: Test car models
|
- name: Test car models
|
||||||
timeout-minutes: ${{ contains(runner.name, 'nsc') && (steps.routes-cache.outputs.cache-hit == 'true') && ((steps.setup-step.outputs.duration < 18) && 1 || 2) || 6 }}
|
timeout-minutes: ${{ contains(runner.name, 'nsc') && (steps.routes-cache.outputs.cache-hit == 'true') && 2 || 6 }}
|
||||||
run: MAX_EXAMPLES=1 pytest --continue-on-collection-errors --durations=0 --durations-min=5 -n logical selfdrive/car/tests/test_models.py
|
run: MAX_EXAMPLES=1 pytest --continue-on-collection-errors --durations=0 --durations-min=5 -n logical selfdrive/car/tests/test_models.py
|
||||||
env:
|
env:
|
||||||
NUM_JOBS: 4
|
NUM_JOBS: 4
|
||||||
|
|||||||
Reference in New Issue
Block a user