From 6f47abeaad298082d011bad5dd4b6da18fd21dca Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Tue, 23 Jan 2024 14:57:31 -0800 Subject: [PATCH] CI: test the car_porting example notebooks (#31131) * dont use route * fix and cleanup * test the example notebooks old-commit-hash: f22b6681d67a0ef11d0446edfb40f50a5c1f8417 --- .github/workflows/tools_tests.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tools_tests.yaml b/.github/workflows/tools_tests.yaml index 5cecfb7e4e..e141071d09 100644 --- a/.github/workflows/tools_tests.yaml +++ b/.github/workflows/tools_tests.yaml @@ -88,4 +88,22 @@ jobs: devcontainer exec --workspace-folder . scons -j$(nproc) cereal/ common/ devcontainer exec --workspace-folder . pip install pip-install-test devcontainer exec --workspace-folder . touch /home/batman/.comma/auth.json - devcontainer exec --workspace-folder . sudo touch /root/test.txt \ No newline at end of file + devcontainer exec --workspace-folder . sudo touch /root/test.txt + + notebooks: + name: notebooks + runs-on: ubuntu-20.04 + if: github.repository == 'commaai/openpilot' + timeout-minutes: 45 + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: ./.github/workflows/setup-with-retry + - name: Build openpilot + timeout-minutes: 5 + run: ${{ env.RUN }} "scons -j$(nproc)" + - name: Test notebooks + timeout-minutes: 2 + run: | + ${{ env.RUN }} "pip install nbmake && pytest --nbmake tools/car_porting/examples/" \ No newline at end of file