CI: fix metadrive test (#32457)

* fix test

* this?

* fix

* this?

* deprecation warning inside

* comment
pull/32469/head
Hoang Bui 11 months ago committed by GitHub
parent 1a4e022d70
commit 950aeae544
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .github/workflows/tools_tests.yaml
  2. 3
      tools/sim/tests/test_metadrive_bridge.py

@ -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

@ -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

Loading…
Cancel
Save