Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests

on:
push:
pull_request:

jobs:
tests:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11.5"

- name: Install test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pyomo==6.8.0 idaes-pse==2.5.0 gridx-egret==0.5.5 numpy
pyomo build-extensions
idaes get-extensions
python -m pip install .

- name: Run tests
run: |
python -m pytest \
var_elim/algorithms/tests \
var_elim/heuristics/tests \
var_elim/mip_formulations/tests
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ Non-PyPI dependencies are:
- [`nmpc_examples`](https://github.com/robbybp/nmpc_examples)
- [`pselib`](https://github.com/robbybp/pselib)

[!Note]
It should not be necessary for uses to manually install these dependencies
as they are already included in the `requirements.txt` file.

When the main branch of this repository requires a specific branch of some dependency
(e.g. the Pyomo main branch, rather than the latest release), an issue should be opened.

Expand Down
Loading