Skip to content

Commit 561a935

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 dfba0d6 commit 561a935

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

Diff for: .github/workflows/test.yml

+33-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
strategy:
6666
matrix:
6767
python-version: ["3.9"]
68-
loader: ["idyntree", "mujoco", "pinocchio", "pybullet", "robomeshcat", "yourdfpy"]
68+
loader: ["idyntree", "mujoco", "pybullet", "robomeshcat", "yourdfpy"]
6969

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

Diff for: tox.ini

-7
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)