CI: fix metadrive test (#32457)

* fix test

* this?

* fix

* this?

* deprecation warning inside

* comment
old-commit-hash: 950aeae5443123e59177444d06a7654a41504373
This commit is contained in:
Hoang Bui
2024-05-18 17:04:22 -04:00
committed by GitHub
parent d7519e5dcc
commit 6c438b8902
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ jobs:
${{ env.RUN }} "export MAPBOX_TOKEN='pk.eyJ1Ijoiam5ld2IiLCJhIjoiY2xxNW8zZXprMGw1ZzJwbzZneHd2NHljbSJ9.gV7VPRfbXFetD-1OVF0XZg' && \
source selfdrive/test/setup_xvfb.sh && \
source selfdrive/test/setup_vsound.sh && \
CI=1 tools/sim/tests/test_metadrive_bridge.py"
CI=1 pytest tools/sim/tests/test_metadrive_bridge.py -W ignore::pyopencl.CompilerWarning"
devcontainer:
name: devcontainer
+3
View File
@@ -1,5 +1,8 @@
#!/usr/bin/env python3
import pytest
import warnings
# Since metadrive depends on pkg_resources, and pkg_resources is deprecated as an API
warnings.filterwarnings("ignore", category=DeprecationWarning)
from openpilot.tools.sim.bridge.metadrive.metadrive_bridge import MetaDriveBridge
from openpilot.tools.sim.tests.test_sim_bridge import TestSimBridgeBase