        - name: Build Docker image
          run: eval "$BUILD"
        - name: Run replay
          run: |
            $PERSIST "cd /tmp/openpilot && \
                      scons -j$(nproc) && \
                      CI=1 coverage run selfdrive/test/process_replay/test_processes.py"
        - name: Upload coverage to Codecov
          run: |
            docker commit tmppilot tmppilotci
            $CI_RUN "cd /tmp/openpilot && bash <(curl -s https://codecov.io/bash) -v -F process_replay"
        - name: Print diff
 
</s> remove           $PERSIST "cd /tmp/openpilot && \
 </s> add           $PERSIST_WITH_CACHE "cd /tmp/openpilot && \
          $PERSIST_WITH_CACHE  "cd /tmp/openpilot && \
          scons -j$(nproc) && \
          FILEREADER_CACHE=1 CI=1 coverage run selfdrive/test/process_replay/test_processes.py"
        - name: Build Docker image
          run: eval "$BUILD"
        - name: Run replay
          run: |
          $PERSIST_WITH_CACHE  "cd /tmp/openpilot && \
          scons -j$(nproc) && \
          FILEREADER_CACHE=1 CI=1 coverage run selfdrive/test/process_replay/test_processes.py"
          $PERSIST_WITH_CACHE  "cd /tmp/openpilot && \
          scons -j$(nproc) && \
          FILEREADER_CACHE=1 CI=1 coverage run selfdrive/test/process_replay/test_processes.py"
          $PERSIST_WITH_CACHE  "cd /tmp/openpilot && \
          scons -j$(nproc) && \
          FILEREADER_CACHE=1 CI=1 coverage run selfdrive/test/process_replay/test_processes.py"
        - name: Upload coverage to Codecov
          run: |
            docker commit tmppilot tmppilotci
            $CI_RUN "cd /tmp/openpilot && bash <(curl -s https://codecov.io/bash) -v -F process_replay"
        - name: Print diff
keep keep keep keep replace replace replace 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