Skip to content

Commit e313a97

Browse files
Use pinocchio from conda-forge rather than PyPI
As of today, the Pinocchio version on PyPI is 2.7.0 while that on conda-forge is 3.3.0
1 parent c8ab1a3 commit e313a97

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

.github/workflows/test.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
fail-fast: false
6767
matrix:
6868
python-version: ["3.9"]
69-
loader: ["idyntree", "mujoco", "pinocchio", "pybullet", "robomeshcat", "yourdfpy"]
69+
loader: ["idyntree", "mujoco", "pybullet", "robomeshcat", "yourdfpy"]
7070

7171
steps:
7272
- name: "Checkout sources"
@@ -86,6 +86,38 @@ jobs:
8686
run: |
8787
tox -e loader-${{ matrix.loader }}
8888
89+
loader-pinocchio:
90+
name: "Loader: pinocchio with Python ${{ matrix.python-version }}"
91+
runs-on: ubuntu-latest
92+
93+
strategy:
94+
matrix:
95+
python-version: ["3.9"]
96+
97+
defaults:
98+
run:
99+
# See https://github.com/mamba-org/setup-micromamba?tab=readme-ov-file#about-login-shells
100+
shell: bash -leo pipefail {0}
101+
102+
steps:
103+
- name: "Checkout sources"
104+
uses: actions/checkout@v4
105+
106+
- name: "Install Conda environment with Micromamba"
107+
uses: mamba-org/setup-micromamba@v1
108+
with:
109+
micromamba-version: '1.5.8-0'
110+
environment-name: pinocchio_test_env
111+
create-args: >-
112+
python=${{ matrix.python-version }}
113+
pinocchio>=3.1.0
114+
cache-environment: true
115+
post-cleanup: 'all'
116+
117+
- name: "Run loader tests"
118+
run: |
119+
python -m unittest tests/loaders/test_pinocchio.py --failfast
120+
89121
ci_success:
90122
name: "CI success"
91123
runs-on: ubuntu-latest

tox.ini

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ deps =
5959
commands =
6060
python -m unittest test_mujoco.py --failfast
6161

62-
[testenv:loader-pinocchio]
63-
changedir = {toxinidir}/tests/loaders
64-
deps =
65-
pin >= 3.1.0
66-
commands =
67-
python -m unittest test_pinocchio.py --failfast
68-
6962
[testenv:loader-pybullet]
7063
changedir = {toxinidir}/tests/loaders
7164
deps =

0 commit comments

Comments
 (0)