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"
0 commit comments