Skip to content

Commit 1c959ec

Browse files
stephane-caronStéphane Caron
authored andcommitted
[CI] Separate loader test environments
1 parent a092e05 commit 1c959ec

File tree

2 files changed

+37
-23
lines changed

2 files changed

+37
-23
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,4 @@ jobs:
8383
8484
- name: "Run loader tests"
8585
run: |
86-
tox -e loader
87-
env:
88-
LOADER: ${{ matrix.loader }}
86+
tox -e loader-${{ matrix.loader }}

tox.ini

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
isolated_build = True
3-
envlist = py{37,38,39,310}-{mujoco,pinocchio,pybullet,robomeshcat,yourdfpy}
3+
envlist = {coverage,lint,loader}-{mujoco,pinocchio,pybullet,robomeshcat,yourdfpy}-py{37,38,39,310}
44

55
[gh-actions]
66
python =
@@ -9,19 +9,9 @@ python =
99
3.9: py39
1010
3.10: py310
1111

12-
[gh-actions:env]
13-
LOADER =
14-
mujoco: mujoco
15-
pinocchio: pinocchio
16-
pybullet: pybullet
17-
robomeshcat: robomeshcat
18-
yourdfpy: yourdfpy
19-
2012
[testenv:coverage]
2113
deps =
22-
GitPython >=3.1.18
2314
coverage
24-
tqdm >=4.64.0
2515
mujoco >=2.2.1
2616
pin >=2.6.10
2717
pybullet >=3.2.5
@@ -34,34 +24,60 @@ commands =
3424

3525
[testenv:lint]
3626
deps =
37-
GitPython >=3.1.18
3827
black
3928
flake8
4029
mccabe
41-
mypy
42-
pylint
4330
mujoco >=2.2.1
44-
py{38,39}: pin >=2.6.10
31+
mypy
32+
pin >=2.6.10
4533
pybullet >=3.2.5
46-
py{38,39}: robomeshcat >= 1.0.3
34+
pylint
35+
robomeshcat >= 1.0.3
4736
yourdfpy >=0.0.52
4837
commands =
4938
black robot_descriptions
5039
flake8 robot_descriptions
5140
pylint robot_descriptions --exit-zero --rcfile={toxinidir}/tox.ini
5241
mypy robot_descriptions --ignore-missing-imports
5342

54-
[testenv:loader]
43+
[testenv:loader-mujoco]
5544
deps =
56-
GitPython >=3.1.18
5745
pytest
58-
mujoco: mujoco >=2.2.1
46+
mujoco >=2.2.1
5947
pinocchio-py{38,39}: pin >=2.6.10
6048
pybullet: pybullet >=3.2.5
6149
robomeshcat-py{38,39}: robomeshcat >= 1.0.3
6250
yourdfpy: yourdfpy >=0.0.52
6351
commands =
64-
pytest --import-mode=importlib tests/loaders/test_{env:LOADER}.py
52+
mujoco: pytest --import-mode=importlib tests/loaders/test_mujoco.py
53+
54+
[testenv:loader-pinocchio]
55+
deps =
56+
pytest
57+
pin >=2.6.10
58+
commands =
59+
pytest --import-mode=importlib tests/loaders/test_pinocchio.py
60+
61+
[testenv:loader-pybullet]
62+
deps =
63+
pytest
64+
pybullet >=3.2.5
65+
commands =
66+
pytest --import-mode=importlib tests/loaders/test_pybullet.py
67+
68+
[testenv:loader-robomeshcat]
69+
deps =
70+
pytest
71+
robomeshcat >= 1.0.3
72+
commands =
73+
pytest --import-mode=importlib tests/loaders/test_robomeshcat.py
74+
75+
[testenv:loader-yourdfpy]
76+
deps =
77+
pytest
78+
yourdfpy >=0.0.52
79+
commands =
80+
pytest --import-mode=importlib tests/loaders/test_yourdfpy.py
6581

6682
[flake8]
6783
max-line-length = 88

0 commit comments

Comments
 (0)