-
Notifications
You must be signed in to change notification settings - Fork 41
44 lines (35 loc) · 1.1 KB
/
testgradient.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# gradient
name: gradient and rho tests
on:
pull_request:
branches: [ main ]
defaults:
run:
shell: bash -l {0}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test_env
python-version: 3.9
auto-activate-base: false
- name: Install dependencies
run: |
conda install mpi4py "numpy<2" setuptools cmake
pip install pyomo pandas xpress cplex scipy sympy dill
- name: setup the program
run: |
pip install -e .
- name: Build Pyomo extensions
run: |
# some failures are expected, but this should succeed as long as pynumero is built correctly
pyomo build-extensions || python -c "from pyomo.contrib.pynumero.asl import AmplInterface; exit(0) if AmplInterface.available() else exit(1)"
- name: run farmer tests
timeout-minutes: 10
run: |
cd mpisppy/tests
python test_gradient_rho.py
python test_w_writer.py