[RTR] solver options ipopt test #784
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run the tests | |
on: [pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-20.04 | |
label: linux-64 | |
prefix: /usr/share/miniconda3/envs/bioptim | |
- os: macos-latest | |
label: osx-64 | |
prefix: /Users/runner/miniconda3/envs/bioptim | |
- os: windows-latest | |
label: win-64 | |
prefix: C:\Miniconda3\envs\bioptim | |
name: ${{ matrix.label }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
use-mamba: true | |
activate-environment: bioptim | |
environment-file: environment.yml | |
- name: Print mamba info | |
run: | | |
mamba config --show | |
mamba info | |
mamba list | |
- name: Install extra dependencies | |
run: mamba install pytest-cov black pytest pytest-cov codecov packaging -cconda-forge | |
- name: Install ACADOS on Linux | |
run: | | |
cd external | |
./acados_install_linux.sh | |
cd .. | |
if: matrix.label == 'linux-64' | |
- name: Install ACADOS on Mac | |
run: | | |
cd external | |
./acados_install_mac.sh | |
cd .. | |
if: matrix.label == 'osx-64' | |
- name: Run the actual tests | |
run: pytest -v --color=yes --cov-report term-missing --cov=bioptim tests | |
- name: Test installed version of bioptim | |
run: | | |
python setup.py install | |
cd | |
python -c "import bioptim" | |
- name: Upload coverage to Codecov | |
run: codecov | |
if: matrix.label == 'linux-64' |