Skip to content

Create release 1.0.1 #2

Create release 1.0.1

Create release 1.0.1 #2

# Copyright (C) 2023 Mitsubishi Electric Research Laboratories (MERL)
#
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Build and test (MacOS | Py 3.9+)
on:
pull_request:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
build:
runs-on: macos-latest
env:
MPLBACKEND: Agg # https://github.com/orgs/community/discussions/26434
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout repo
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: |
brew install gmp
python3 -m pip install --upgrade pip
cd ..
git clone https://github.com/mcmtroffaes/pycddlib.git
cd pycddlib
git checkout 2.1.8.post1
git submodule update --init
./cddlib-makefile-gmp.sh
env "CFLAGS=-I$(brew --prefix)/include -L$(brew --prefix)/lib" python3 -m pip install .
# change directory back into pycvxset
cd $GITHUB_WORKSPACE
- name: Install pycvxset
run: |
pip install --editable .
- name: Run pycvxset diagnostic
run: |
python3 examples/pycvxset_diag.py --do_not_use_plot_show
- name: Install pycvxset with testing dependencies
run: |
pip install --editable ".[with_tests]"
- name: Run coverage tests
run: |
coverage run --rcfile=tests/.coveragerc --source=pycvxset -m pytest tests -W error::UserWarning
coverage report --skip-covered --rcfile=tests/.coveragerc