-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (38 loc) · 1.37 KB
/
ci.yml
File metadata and controls
40 lines (38 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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