Skip to content

Merge branch 'master' of github.com:lindonroberts/trust-region #5

Merge branch 'master' of github.com:lindonroberts/trust-region

Merge branch 'master' of github.com:lindonroberts/trust-region #5

name: Python package unit testing
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9"]
steps:
- uses: actions/checkout@v2
- name: Install Fortran compiler
run: |
sudo apt-get install gfortran
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install nose
pip install -r requirements.txt
- name: Build package
run: |
python setup.py build
- name: Run unit tests
run: |
python setup.py test