Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d78478d
move pandas to test dependencies + remove geopandas (#751)
maxime-desroches Sep 1, 2024
e47791f
Merge and splits for ramp (#734)
fredyshox Sep 1, 2024
8769632
show splash screen only when `show_logo` is true (#752)
maxime-desroches Sep 1, 2024
ed46ab7
remove duplicate `tqdm` dependency (#756)
maxime-desroches Sep 1, 2024
8be4087
Fix ramp rendering (#759)
QuanyiLi Sep 2, 2024
ee5e1f8
fix sidewalk rendering (#762)
QuanyiLi Sep 23, 2024
0624f72
Adjust the scaling automatically in TopDownRenderer (#776)
pengzhenghao Nov 19, 2024
8fffccd
SimGen-related code (#777)
pengzhenghao Dec 3, 2024
6b19a02
Hotfix the bugs introduced by bounding box env (#778)
pengzhenghao Dec 6, 2024
5bf8ea8
Introduce the ScenarioOnlineEnv (#779)
pengzhenghao Dec 6, 2024
b908149
Releases/0.4.3 (#780)
pengzhenghao Dec 6, 2024
2b6f5d3
Fix issue that car can't full stop if brake (#786)
pengzhenghao Dec 15, 2024
4111ff5
Fix a bug caused by CUDA image caching: when setting new cam HPR/Pos,…
pengzhenghao Dec 15, 2024
d29ef38
Fix a bug that first frame of depth cam is not properly rendered (#787)
pengzhenghao Dec 16, 2024
3c6f7d9
Introduce a test script for determinism (#789)
pengzhenghao Dec 16, 2024
3ba59c2
Introduce a SimGen example (#791)
pengzhenghao Dec 17, 2024
a39ae24
Enable MetaDrive support on macOS (#794)
DhlinV Jan 9, 2025
5656fd2
Update README.md (#795)
zhoubolei Jan 9, 2025
aadad4d
New Depth Cam for all platform (#798)
QuanyiLi Jan 17, 2025
12b2bdc
fix semantic camera (#799)
DhlinV Jan 18, 2025
9273c2d
Converting depth value to point cloud (#800)
QuanyiLi Jan 18, 2025
e84da02
Optimze terrain (#801)
QuanyiLi Jan 19, 2025
2afd69f
Fix artifact (#802)
QuanyiLi Jan 19, 2025
866afeb
Detecting traffic light (#805)
QuanyiLi Jan 22, 2025
6102378
Update the multigoal environment: 1) remove visualization to native d…
pengzhenghao Jan 30, 2025
5e27400
Remove seaborn (mirror #750) (#808)
pengzhenghao Jan 31, 2025
4824e70
Fix GitHub action ffmpeg (#809)
pengzhenghao Feb 2, 2025
420a78d
Don't import `pygame` when not necessary (#796)
pengzhenghao Feb 6, 2025
bb0a0c6
support Python 3.12 / pin panda3d==1.10.14 / pin ray>=2.24.0 (mirror …
pengzhenghao Feb 8, 2025
295a893
Set the logging level for ep termination info to debug (#818)
pengzhenghao Feb 21, 2025
13befc8
show more content in doc tree (#819)
QuanyiLi Feb 22, 2025
c29cc37
Allow -1 num_scenarios (#821)
pengzhenghao Mar 5, 2025
45642ce
Fix wrong terrain in MultiGoal env (#823)
pengzhenghao Mar 9, 2025
da5032d
remove scipy in point cloud lidar (#815)
DhlinV Mar 9, 2025
a09bc96
move scipy to test dependencies + remove some usage (mirror #754) (#812)
pengzhenghao Mar 9, 2025
a7f7d0b
Relax the version constraints on Python and dependencies.
DhlinV Mar 19, 2025
d578dc8
Use horizon 1000 for MD and SafeMD env (#825)
pengzhenghao Mar 20, 2025
4c8daad
A basic traffic mode for PGTrafficManager (#827)
olek-osikowicz Mar 20, 2025
e8d94c9
Waypoint policy (#834)
WeizhenWang-1210 Apr 14, 2025
94db146
Fix minor bug in `get_number_summary` - Use class instead of instance…
LLeon360 Apr 25, 2025
ec89300
Add a flag to allow center at map in BEV rendering (#838)
pengzhenghao Apr 28, 2025
85e5dad
force set store_map=False for ScenarioOnlineEnv (#841)
pengzhenghao May 12, 2025
7c7d28a
make anisotropic_filtering configurable
maxime-desroches Aug 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 71 additions & 38 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
code_style:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Check code style
run: |
pip install "yapf==0.30.0"
Expand All @@ -37,16 +41,19 @@ jobs:
docstring_coverage:
if: github.event_name != 'push' || github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Install software
run: |
sudo apt update && sudo apt install -y bc
pip install "docstr-coverage==2.3.0"
pip install "docstr-coverage"
- name: Get post-PR docstring coverage
run: |
after=$(docstr-coverage --percentage-only --fail-under 0 metadrive/)
Expand All @@ -72,12 +79,15 @@ jobs:

test_functionality:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Blackbox tests
run: |
pip install cython
Expand All @@ -86,18 +96,21 @@ jobs:
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_functionality

test_environment:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Blackbox tests
run: |
pip install cython
Expand All @@ -107,18 +120,21 @@ jobs:
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_env

test_policy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Blackbox tests
run: |
pip install cython
Expand All @@ -127,18 +143,21 @@ jobs:
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_policy

test_component:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Blackbox tests
run: |
pip install cython
Expand All @@ -147,18 +166,21 @@ jobs:
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_component

test_export_record_scenario:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Blackbox tests
run: |
pip install cython
Expand All @@ -167,18 +189,21 @@ jobs:
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_export_record_scenario

test_sensor_pipeline:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Prepare OpenGL
run: |
sudo apt-get -y install xvfb
Expand All @@ -191,18 +216,21 @@ jobs:
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_sensors/

test_examples:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Prepare OpenGL
run: |
sudo apt-get -y install xvfb
Expand All @@ -217,18 +245,21 @@ jobs:
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_policy_windows:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Blackbox tests
run: |
pip install cython
Expand All @@ -237,18 +268,21 @@ jobs:
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_policy

test_ipynb:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Prepare OpenGL
run: |
sudo apt-get -y install xvfb
Expand All @@ -261,7 +295,7 @@ jobs:
python -m metadrive.pull_asset
pip install pytest
pip install pytest-cov
pip install ray

cd metadrive/
pip install nbmake pytest-xdist
mkdir ./tests/test_ipynb
Expand All @@ -270,12 +304,15 @@ jobs:

test_doc_code:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python 3.9 / 3.12
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: ${{ matrix.python-version }}
- name: Prepare OpenGL
run: |
sudo apt-get -y install xvfb
Expand All @@ -292,10 +329,6 @@ jobs:
# Target architecture of the ffmpeg executable to install. Defaults to the
# system architecture. Only x64 and arm64 are supported (arm64 only on Linux).
architecture: ''
# Linking type of the binaries. Use "shared" to download shared binaries and
# "static" for statically linked ones. Shared builds are currently only available
# for windows releases. Defaults to "static"
linking-type: static
# As of version 3 of this action, builds are no longer downloaded from GitHub
# except on Windows: https://github.com/GyanD/codexffmpeg/releases.
github-token: ${{ github.server_url == 'https://github.com' && github.token || '' }}
Expand Down
Loading