|
|
@ -245,7 +245,6 @@ jobs: |
|
|
|
- name: Run unit tests |
|
|
|
- name: Run unit tests |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "scons -j$(nproc) --test && \ |
|
|
|
${{ env.RUN }} "scons -j$(nproc) --test && \ |
|
|
|
coverage run selfdrive/test/test_fingerprints.py && \ |
|
|
|
|
|
|
|
$UNIT_TEST common && \ |
|
|
|
$UNIT_TEST common && \ |
|
|
|
$UNIT_TEST opendbc/can && \ |
|
|
|
$UNIT_TEST opendbc/can && \ |
|
|
|
$UNIT_TEST selfdrive/boardd && \ |
|
|
|
$UNIT_TEST selfdrive/boardd && \ |
|
|
@ -384,7 +383,7 @@ jobs: |
|
|
|
uses: actions/cache@v2 |
|
|
|
uses: actions/cache@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
path: /tmp/comma_download_cache |
|
|
|
path: /tmp/comma_download_cache |
|
|
|
key: car_models-${{ hashFiles('selfdrive/test/test_models.py', 'selfdrive/test/test_routes.py') }}-${{ matrix.job }} |
|
|
|
key: car_models-${{ hashFiles('selfdrive/car/tests/test_models.py', 'selfdrive/test/test_routes.py') }}-${{ matrix.job }} |
|
|
|
- name: Cache scons |
|
|
|
- name: Cache scons |
|
|
|
id: scons-cache |
|
|
|
id: scons-cache |
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
|
# TODO: Change the version to the released version when https://github.com/actions/cache/pull/489 (or 571) is merged. |
|
|
@ -402,7 +401,7 @@ jobs: |
|
|
|
- name: Test car models |
|
|
|
- name: Test car models |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "scons -j$(nproc) --test && \ |
|
|
|
${{ env.RUN }} "scons -j$(nproc) --test && \ |
|
|
|
FILEREADER_CACHE=1 coverage run -m pytest selfdrive/test/test_models.py && \ |
|
|
|
FILEREADER_CACHE=1 coverage run -m pytest selfdrive/car/tests/test_models.py && \ |
|
|
|
coverage xml && \ |
|
|
|
coverage xml && \ |
|
|
|
chmod -R 777 /tmp/comma_download_cache" |
|
|
|
chmod -R 777 /tmp/comma_download_cache" |
|
|
|
env: |
|
|
|
env: |
|
|
|