Skip to content

Added CZI funding to the README. #7

Added CZI funding to the README.

Added CZI funding to the README. #7

Workflow file for this run

name: Build and Test
on: [push, pull_request]
# cancels prior builds for this workflow when new commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build and run tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout Opty
uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: test-environment
python-version: ${{ matrix.python-version }}
channels: conda-forge
miniforge-variant: Mambaforge
- name: Install basic dependencies
run: |
mamba install -q -y sympy cython scipy cyipopt pytest pytest-cov coverage sphinx matplotlib-base openmp
- name: Install Opty and test import
run: |
python -m pip install .
mamba list
python -c "import opty"
- name: Test with pytest
run: |
mamba list
pytest --cov=opty opty/
- name: Run an example
run: |
python examples/vyasarayani2011.py