Skip to content

Updated docs for optimiser and CMA-ES. Added proper exception for CMAES not supporting 1-d. #1373

Updated docs for optimiser and CMA-ES. Added proper exception for CMAES not supporting 1-d.

Updated docs for optimiser and CMA-ES. Added proper exception for CMAES not supporting 1-d. #1373

name: Unit tests (OS versions)
on:
push:
branches:
- main
pull_request:
# Run workflow when PR is changed, or when changed from draft to ready
types: [opened, synchronize, reopened, ready_for_review]
branches:
- '**'
jobs:
build-and-test:
name: OS unit tests
runs-on: ${{ matrix.os }}
# Skip job if it's a draft PR
if: github.event.pull_request.draft == false
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
# Note: Ubuntu 22 is checked by other tests
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: install pints
run: |
python --version
python -m pip install --upgrade pip setuptools wheel
python -m pip install .
- name: run unit tests
run: |
python run-tests.py --unit