Support nested models in sdformat -> mjcf conversion (#119) #897
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| python: ['3.12'] | |
| platform: [ubuntu-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y git python3-pip | |
| git clone --depth 1 https://github.com/osrf/gzdev /tmp/gzdev | |
| sudo python3 -m pip install -r /tmp/gzdev/requirements.txt | |
| sudo /tmp/gzdev/gzdev.py repository enable osrf stable | |
| sudo /tmp/gzdev/gzdev.py repository enable osrf nightly | |
| sudo apt-get update | |
| sudo apt-get install -y libsdformat16-dev python3-gz-math9 python3-sdformat16 | |
| - name: Install test dependencies | |
| run: python3 -m pip install -U tox | |
| - name: Test sdformat_mjcf | |
| env: | |
| # Set PYTHONPATH since the SDFormat python bindings will be installed in the system python library location | |
| PYTHONPATH: ${{ env.pythonLocation }}/lib/python${{ matrix.python }}/site-packages:/usr/lib/python3/dist-packages | |
| MUJOCO_GL: egl | |
| run: | | |
| cd sdformat_mjcf | |
| python3 -m tox -e py | |
| - name: Upload Coverage to Codecov | |
| uses: codecov/codecov-action@v2 |