Create release 1.0.0 #1
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
# 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 master | |
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 |