From 3e6ce7d6cdd548a3c58dd1a5442db14f15369352 Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Mon, 21 Aug 2023 20:51:27 -0700 Subject: [PATCH] CI: use xdist for car model tests (#29514) * bump panda * try multithreaded for car models * need pytest-cov * upgraded to poetry 1.5.1 and regenerated old-commit-hash: 3492e80d19a4395d9481076c916f9ab96a8fb004 --- .github/workflows/selfdrive_tests.yaml | 3 +-- poetry.lock | 4 ++-- pyproject.toml | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/selfdrive_tests.yaml b/.github/workflows/selfdrive_tests.yaml index 2b2341d6ff..991ce74ca9 100644 --- a/.github/workflows/selfdrive_tests.yaml +++ b/.github/workflows/selfdrive_tests.yaml @@ -383,8 +383,7 @@ jobs: - name: Test car models timeout-minutes: 25 run: | - ${{ env.RUN }} "coverage run -m pytest selfdrive/car/tests/test_models.py && \ - coverage xml && \ + ${{ env.RUN }} "pytest --cov --cov-report=xml -n auto --dist=loadscope selfdrive/car/tests/test_models.py && \ chmod -R 777 /tmp/comma_download_cache" env: NUM_JOBS: 5 diff --git a/poetry.lock b/poetry.lock index 14fd4b94cd..3c51ab143d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7616cdd0f1b405b1e867be8c62059002a1e6c7489ef213bf2b5673981614d58b -size 369979 +oid sha256:84f8705c459327c978b80ba946251e21c9f93076a3bebb5c823dbbf2defbcef7 +size 370448 diff --git a/pyproject.toml b/pyproject.toml index 0af1bfcfae..0801439945 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,6 +119,7 @@ pycurl = "*" pygame = "*" pyprof2calltree = "*" pytest = "*" +pytest-cov = "*" pytest-xdist = "*" scipy = "*" sphinx = "*"