Skip to content

remove Pyomo deprecation warnings #343

remove Pyomo deprecation warnings

remove Pyomo deprecation warnings #343

Workflow file for this run

name: EGRET Prescient CI
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
types: run-test
defaults:
run:
shell: bash -l {0}
jobs:
build:
name: Prescient main, ${{ matrix.os }}, Python ${{ matrix.python-version }}, Pyomo ${{ matrix.pyomo-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9]
pyomo-version: [6.4.0]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test_env
python-version: ${{ matrix.python-version }}
auto-activate-base: false
- name: Conda Env
run: |
conda info
conda list
- name: Install CBC
run: |
conda install -c conda-forge coincbc
# test cbc executable
cbc -quit
- name: Install Pyomo
run: |
pip install git+https://github.com/Pyomo/pyomo.git@${{ matrix.pyomo-version }}
- name: Install EGRET
run: |
pip install -e .
- name: Install Prescient
run: |
cd ..
git clone --depth=1 https://github.com/grid-parity-exchange/Prescient.git
cd Prescient
pip install -e .
- name: Run Prescient Tests
run: |
cd ../Prescient
pytest -v prescient/simulator/tests/test_simulator.py