From e15ef1972cef4c8ac6c39969e8a4454d001676dc Mon Sep 17 00:00:00 2001 From: QuanyiLi Date: Tue, 24 Oct 2023 17:12:16 +0100 Subject: [PATCH] Add to workflow --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e4e1a6137..cb3d217e9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -202,6 +202,30 @@ jobs: cd metadrive/ pytest --cov=./ --cov-config=.coveragerc --cov-report=xml -sv tests/test_sensors + test_examples: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Prepare OpenGL + run: | + sudo apt-get -y install xvfb + sudo /usr/bin/Xvfb :0 -screen 0 1280x1024x24 & + - name: Blackbox tests + run: | + pip install cython + pip install numpy + pip install -e . + python -m metadrive.pull_asset + pip install pytest + pip install pytest-cov + pip install ray + cd metadrive/ + pytest --cov=./ --cov-config=.coveragerc --cov-report=xml -sv tests/test_examples + test_ipynb: runs-on: ubuntu-latest steps: