CI: move ubsan into test.sh matrix (#2305)

* CI: move ubsan into test.sh matrix

* try this
This commit is contained in:
Adeeb Shihadeh
2025-05-25 13:22:10 -07:00
committed by GitHub
parent c2a8b02a34
commit 90bad1f04c
2 changed files with 6 additions and 16 deletions

View File

@@ -15,26 +15,16 @@ jobs:
matrix:
include:
- os: ${{ github.repository == 'commaai/opendbc' && 'namespace-profile-amd64-8x16' || 'ubuntu-24.04' }}
flags: ''
- os: ${{ github.repository == 'commaai/opendbc' && 'namespace-profile-amd64-8x16' || 'ubuntu-24.04' }}
flags: '--ubsan'
- os: ${{ github.repository == 'commaai/opendbc' && 'namespace-profile-macos-8x14' || 'macos-latest' }}
flags: ''
steps:
- uses: commaai/timeout@v1
- uses: actions/checkout@v4
- uses: ./.github/workflows/cache
- run: ./test.sh
safety_tests:
name: safety
runs-on: ${{ github.repository == 'commaai/opendbc' && 'namespace-profile-amd64-8x16' || 'ubuntu-latest' }}
strategy:
fail-fast: false
matrix:
flags: ['--ubsan']
steps:
- uses: commaai/timeout@v1
- uses: actions/checkout@v4
- uses: ./.github/workflows/cache
- name: Run safety tests
run: ./opendbc/safety/tests/test.sh ${{ matrix.flags }}
- run: ./test.sh ${{ matrix.flags }}
mutation:
name: Safety mutation tests

View File

@@ -7,7 +7,7 @@ cd $DIR
source ./setup.sh
# *** build ***
scons -j8
scons -j8 "$@"
# *** lint + test ***
lefthook run test