mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 12:32:06 +08:00
CI: run car unit tests in parallel (#23379)
* CI: run car unit tests in parallel * move that old-commit-hash: cd42be7777aa7901f1d12ccf0b3d2562dc209a44
This commit is contained in:
@@ -351,11 +351,12 @@ jobs:
|
||||
name: longitudinal
|
||||
path: selfdrive/test/longitudinal_maneuvers/out/longitudinal/
|
||||
|
||||
test_car_models:
|
||||
name: car models
|
||||
test_cars:
|
||||
name: cars
|
||||
runs-on: ubuntu-20.04
|
||||
timeout-minutes: 50
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
job: [0, 1, 2, 3]
|
||||
steps:
|
||||
@@ -385,7 +386,7 @@ jobs:
|
||||
- name: Test car models
|
||||
run: |
|
||||
${{ env.RUN }} "scons -j$(nproc) --test && \
|
||||
FILEREADER_CACHE=1 coverage run selfdrive/test/test_models.py && \
|
||||
FILEREADER_CACHE=1 pytest -n 4 selfdrive/test/test_models.py && \
|
||||
chmod -R 777 /tmp/comma_download_cache"
|
||||
env:
|
||||
NUM_JOBS: 4
|
||||
|
||||
Reference in New Issue
Block a user