Skip to content

Commit b578d67

Browse files
CICD: Use conda in unit tests and remove tox configuration
1 parent c88713f commit b578d67

3 files changed

Lines changed: 37 additions & 57 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
run: |
9191
black --check --diff pink
9292
mypy pink --ignore-missing-imports
93-
pylint pink --exit-zero --rcfile={toxinidir}/tox.ini
93+
pylint pink --exit-zero --rcfile=pyproject.toml
9494
ruff check pink
9595
ruff format --check pink
9696
@@ -105,26 +105,32 @@ jobs:
105105
# os: [ubuntu-latest, macos-latest]
106106
python-version: ["3.9", "3.10", "3.11", "3.12"]
107107

108+
defaults:
109+
run:
110+
# See https://github.com/mamba-org/setup-micromamba?tab=readme-ov-file#about-login-shells
111+
shell: bash -leo pipefail {0}
112+
108113
steps:
109114
- name: "Checkout sources"
110115
uses: actions/checkout@v4
111116

112-
- name: "Set up Python ${{ matrix.python-version }}"
113-
uses: actions/setup-python@v4
117+
- name: "Install Conda environment with Micromamba"
118+
uses: mamba-org/setup-micromamba@v1
114119
with:
115-
python-version: "${{ matrix.python-version }}"
116-
117-
- name: "Install dependencies"
118-
run: |
119-
python -m pip install --upgrade pip
120-
# tox version: https://github.com/tox-dev/tox/issues/2778
121-
python -m pip install tox==3.28.0 tox-gh-actions
120+
micromamba-version: '1.5.8-0'
121+
environment-name: coverage
122+
create-args: >-
123+
python={{ matrix.python-version }}
124+
pinocchio>=2.6.4
125+
qpsolvers>=2.7.2
126+
quadprog>=0.1.11
127+
robot_descriptions>=1.9.0
128+
cache-environment: true
129+
post-cleanup: 'all'
122130

123-
- name: "Test with tox for ${{ matrix.os }}"
131+
- name: "Run unit tests with Python {{ matrix.python-version }} on ${{ matrix.os }}"
124132
run: |
125-
tox
126-
env:
127-
PLATFORM: ${{ matrix.os }}
133+
python -m unittest discover --failfast
128134
129135
ci_success:
130136
name: "CI success"

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,23 @@ Changelog = "https://github.com/stephane-caron/pink/blob/main/CHANGELOG.md"
4444
[tool.black]
4545
line-length = 79
4646

47+
[tool.pylint]
48+
disable = ["C0103", "E1130", "import-error"]
49+
generated-members = [
50+
"pin.Data",
51+
"pin.JointModelFreeFlyer",
52+
"pin.Model",
53+
"pin.ReferenceFrame",
54+
"pin.SE3",
55+
"pin.computeJointJacobians",
56+
"pin.difference",
57+
"pin.getFrameJacobian",
58+
"pin.integrate",
59+
"pin.neutral",
60+
"pin.updateFramePlacements",
61+
"pin.Jlog6"
62+
]
63+
4764
[tool.flit.module]
4865
name = "pink"
4966

tox.ini

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)