|
|
@ -154,10 +154,11 @@ jobs: |
|
|
|
with: |
|
|
|
with: |
|
|
|
submodules: true |
|
|
|
submodules: true |
|
|
|
- uses: ./.github/workflows/setup-with-retry |
|
|
|
- uses: ./.github/workflows/setup-with-retry |
|
|
|
|
|
|
|
id: setup-step |
|
|
|
- name: Build openpilot |
|
|
|
- name: Build openpilot |
|
|
|
run: ${{ env.RUN }} "scons -j$(nproc)" |
|
|
|
run: ${{ env.RUN }} "scons -j$(nproc)" |
|
|
|
- name: Run unit tests |
|
|
|
- name: Run unit tests |
|
|
|
timeout-minutes: ${{ contains(runner.name, 'nsc') && 1 || 20 }} |
|
|
|
timeout-minutes: ${{ (steps.setup-step.outputs.duration < 19) && 1 || 2 }} |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
${{ env.RUN }} "$PYTEST --collect-only -m 'not slow' &> /dev/null && \ |
|
|
|
${{ env.RUN }} "$PYTEST --collect-only -m 'not slow' &> /dev/null && \ |
|
|
|
MAX_EXAMPLES=1 $PYTEST -m 'not slow' && \ |
|
|
|
MAX_EXAMPLES=1 $PYTEST -m 'not slow' && \ |
|
|
|