Skip to content

[feat] Equality constraints from the model, cassie examples #99

[feat] Equality constraints from the model, cassie examples

[feat] Equality constraints from the model, cassie examples #99

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_call: # allow this workflow to be called from other workflows
jobs:
unit-tests:
name: "Unit tests"
runs-on: ubuntu-latest
steps:
- name: "Checkout sources"
uses: actions/checkout@v3
with:
submodules: recursive
- name: "Set up Python"
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
python -m pip install coveralls
pip install ".[dev]"
- name: "Run unit tests"
run: |
coverage erase
coverage run -m unittest discover --failfast
coverage report --include="mjinx/*"
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Run tests
run: |
pytest tests/example_tests