CI: run car unit tests in parallel (#23379)

* CI: run car unit tests in parallel

* move that
This commit is contained in:
Adeeb Shihadeh
2022-01-03 16:30:14 -08:00
committed by GitHub
parent 231f74cd23
commit cd42be7777
3 changed files with 253 additions and 258 deletions

View File

@@ -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