Run CI tests in parallel (#1962)

* run car model unit tests in parallel

* remove refs to deleted file

* run with coverage

* that wasn't necessary

* as builder

* need a new route for this one too
old-commit-hash: 9ee1cc9b82
This commit is contained in:
Adeeb Shihadeh
2020-08-02 00:30:09 -07:00
committed by GitHub
parent 943044b317
commit 2f1d9daa9a
5 changed files with 9 additions and 17 deletions

View File

@@ -37,7 +37,7 @@ jobs:
external/bin selfdrive/modeld/runners $TEST_DIR
# need these so docker copy won't fail
cp Pipfile Pipfile.lock .pylintrc .coveragerc-app .pre-commit-config.yaml $TEST_DIR
cp Pipfile Pipfile.lock .pylintrc .pre-commit-config.yaml $TEST_DIR
cd $TEST_DIR
mkdir laika laika_repo tools
- name: Build Docker image
@@ -199,8 +199,8 @@ jobs:
run: |
$PERSIST "cd /tmp/openpilot && \
scons -j$(nproc) && \
coverage run --parallel-mode --concurrency=multiprocessing \
--rcfile=./.coveragerc-app selfdrive/test/test_models.py && \
coverage run --parallel-mode -m nose --processes=4 --process-timeout=60 \
selfdrive/test/test_models.py && \
coverage combine"
- name: Upload coverage to Codecov
run: |