        - uses: actions/checkout@v2
          with:
            submodules: true
        - name: Build Docker image
          run: eval "$BUILD"
        - name: Test car models
          run: |
            $PERSIST_WITH_CACHE "cd /tmp/openpilot && \
 
</s> remove           $PERSIST "cd /tmp/openpilot && \
                    scons -j$(nproc) && \
                    CI=1 coverage run selfdrive/test/process_replay/test_processes.py"
 </s> add           $PERSIST_WITH_CACHE  "cd /tmp/openpilot && \
          scons -j$(nproc) && \
          FILEREADER_CACHE=1 CI=1 coverage run selfdrive/test/process_replay/test_processes.py" </s> remove           $PERSIST "cd /tmp/openpilot && \
 </s> add           $PERSIST_WITH_CACHE "cd /tmp/openpilot && \
      - name: Cache dependencies
        id: dependency-cache
        uses: actions/cache@v2
        with:
          path: |
            /tmp/comma_download_cache
          key: ${{ hashFiles('.github/workflows/test.yaml', 'selfdrive/test/test_car_models.py') }}
        - uses: actions/checkout@v2
          with:
            submodules: true
      - name: Cache dependencies
        id: dependency-cache
        uses: actions/cache@v2
        with:
          path: |
            /tmp/comma_download_cache
          key: ${{ hashFiles('.github/workflows/test.yaml', 'selfdrive/test/test_car_models.py') }}
        - name: Build Docker image
          run: eval "$BUILD"
        - name: Test car models
          run: |
            $PERSIST_WITH_CACHE "cd /tmp/openpilot && \
keep keep add keep keep keep keep keep
 add caching to CI tests (#2269)

* first caching attempt

* caching attempt

* caching attempt

* caching attempt

* caching attempt

* caching attempt

* dump logs

* does this work?

* Create cache folder

* Print folder contents

* Fix volume mount

* Update test.yaml

* add removed tests

* reduce diff

* reduce diff

* reduce diff

* reduce diff

* reduce diff

* readd coverage upload

* Update test.yaml

* add more caching

* Use hash of test file to compute cache key

* add cache to valgrind tests

* Update .github/workflows/test.yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Update .github/workflows/test.yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Also hash workflow yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com> 
.github/workflows/test.yaml