Skip to content

Clean parameterized hfun interface #478

Clean parameterized hfun interface

Clean parameterized hfun interface #478

Workflow file for this run

# ----- IBCDFO FULL TESTING OF LOCAL CLONE WITHOUT COVERAGE
name: Test IBCDFO MATLAB Code
env:
BENDFO_M_PATH: ${{ github.workspace }}/BenDFO/m
BENDFO_DATA_PATH: ${{ github.workspace }}/BenDFO/data
POUNDERS_M_PATH: ${{ github.workspace }}/IBCDFO/pounders/m
MSAMP_M_PATH: ${{ github.workspace }}/IBCDFO/manifold_sampling/m
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
# Rather than runs tests on a full matrix of test suites, we accept running
# only on the oldest and latest versions available.
test_ibcdfo:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04, macos-14, macos-15, macos-15-intel]
matlab-release: ["R2021a", "latest"]
exclude:
# Failing with a possible issue outside IBCDFO (Issue #157)
- os: macos-14
matlab-release: "R2023b"
runs-on: ${{ matrix.os }}
steps:
# -- General Setup Steps
- name: Checkout IBCDFO repository
uses: actions/checkout@v4
with:
path: IBCDFO
submodules: recursive
- name: Checkout BenDFO repository
uses: actions/checkout@v4
with:
repository: POptUS/BenDFO
path: BenDFO
- name: Set up MATLAB ${{ matrix.matlab-release }}
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.matlab-release }}
products: Optimization_Toolbox
# -- Test Execution Step
- name: Test POUNDERS
uses: matlab-actions/run-command@v2
with:
command: >
addpath("${{ env.BENDFO_M_PATH }}"),
addpath("${{ env.BENDFO_DATA_PATH }}"),
cd ${{ env.POUNDERS_M_PATH }},
results = runtests("IncludeSubfolders", true),
assertSuccess(results);
- name: Test Manifold Sampling
uses: matlab-actions/run-command@v2
with:
command: >
addpath("${{ env.BENDFO_M_PATH }}"),
addpath("${{ env.BENDFO_DATA_PATH }}"),
cd ${{ env.MSAMP_M_PATH }},
results = runtests("IncludeSubfolders", true),
assertSuccess(results),