Skip to content

fixing tests

fixing tests #99

name: Test-Experimental
on:
push:
branches:
- experimental
jobs:
test-experimental:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
DISABLE_JIT: [0, 1]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
git clone -b experimental --single-branch https://github.com/FilippoAiraldi/casadi-nlp.git
python -m pip install ./casadi-nlp
python -m pip install -r requirements.txt
python -m pip install -e .
python -m pip install -r requirements-tests.txt
- name: Test with unittest
run: |
coverage run -m unittest discover ./tests 'test_*.py'
env:
NUMBA_DISABLE_JIT: ${{ matrix.DISABLE_JIT }}