Skip to content

Commit e0ae866

Browse files
committed
[WIP] enable simulator_driving tests
1 parent 0d178ab commit e0ae866

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/test_imu.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: IMU Test
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'tools/sim/**'
7+
8+
jobs:
9+
test_imu:
10+
name: Test IMU Data
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
submodules: true
16+
- name: Setup Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.11'
20+
- name: Install dependencies
21+
run: |
22+
pip install numpy pytest
23+
- name: Test IMU functionality
24+
run: |
25+
python3 -c "
26+
import sys; sys.path.insert(0, '.')
27+
from cereal import messaging
28+
sm = messaging.SubMaster(['accelerometer', 'gyroscope'])
29+
print('IMU services available')
30+
"

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ jobs:
223223
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))
224224
&& fromJSON('["namespace-profile-amd64-8x16", "namespace-experiments:docker.builds.local-cache=separate"]')
225225
|| fromJSON('["ubuntu-24.04"]') }}
226-
if: false # FIXME: Started to timeout recently
226+
if: true
227227
steps:
228228
- uses: actions/checkout@v4
229229
with:

0 commit comments

Comments
 (0)