Skip to content

Create release 1.0.0 #1

Create release 1.0.0

Create release 1.0.0 #1

# Copyright (C) 2023 Mitsubishi Electric Research Laboratories (MERL)
#
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Build and test (Linux | Py 3.9+)
on:
pull_request:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
build:
runs-on: ubuntu-latest
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: |
sudo apt-get install libgmp-dev
python3 -m pip install --upgrade pip
- name: Install pycvxset
run: |
pip install --editable .
- name: Run pycvxset diagnostic
run: |
python3 examples/pycvxset_diag.py --do_not_use_plot_show
- name: Install 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