Skip to content

main_ci

main_ci #822

Workflow file for this run

name: main_ci
on:
push:
pull_request:
schedule:
- cron: "0 2 * * 1-5"
jobs:
build:
runs-on: ubuntu-18.04
strategy:
max-parallel: 3
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v1
- name: setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install numpy scipy nose codecov coverage sympy networkx pybind11
pip install -i https://pypi.gurobi.com gurobipy
conda install openmpi=4.1.2 pymumps ipopt --no-update-deps
pip install mpi4py
pip install metis
pip install git+https://github.com/cog-imperial/suspect.git
pip install git+https://github.com/pyomo/pyomo.git
pip install git+https://github.com/grid-parity-exchange/Egret.git
python setup.py develop
- name: build pyomo extensions
run: |
pyomo download-extensions
pyomo build-extensions
- name: Test with nose
run: |
nosetests -v -a '!parallel' -a n_procs=all -a n_procs=1 --with-coverage --cover-package=coramin --with-doctest --doctest-extension=.rst --cover-xml coramin
coverage report -m
- name: Run parallel tests
run: |
mpirun -np 2 -oversubscribe nosetests -a parallel,n_procs=all -a parallel,n_procs=2 coramin
- name: upload coverage
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}