sim: fake IMU data in simulator #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: IMU Test | |
| on: | |
| pull_request: | |
| paths: | |
| - 'tools/sim/**' | |
| jobs: | |
| test_imu: | |
| name: Test IMU Data | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| pip install numpy pytest | |
| - name: Test IMU functionality | |
| run: | | |
| python3 -c " | |
| import sys; sys.path.insert(0, '.') | |
| from cereal import messaging | |
| sm = messaging.SubMaster(['accelerometer', 'gyroscope']) | |
| print('IMU services available') | |
| " |