From 20a18d04ec971a8253fa2446864ef9808581e57b Mon Sep 17 00:00:00 2001 From: Robert Parker Date: Mon, 4 May 2026 14:43:15 -0400 Subject: [PATCH 1/5] start gha ci --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..98512d1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +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 + python -m pip install . + + - name: Run tests + run: | + python -m pytest \ + var_elim/algorithms/tests \ + var_elim/heuristics/tests \ + var_elim/mip_formulations/tests From b92166c60b2490e31dd173036e4d2fbbffda21f7 Mon Sep 17 00:00:00 2001 From: Robert Parker Date: Mon, 4 May 2026 14:48:36 -0400 Subject: [PATCH 2/5] install dependencies from requirements.txt --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98512d1..7ca3c65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: - 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 + python -m pip install -r requirements.txt python -m pip install . - name: Run tests From d7c59d27a77d076a9e9345809a246063a3ecf439 Mon Sep 17 00:00:00 2001 From: Robert Parker Date: Mon, 4 May 2026 14:52:36 -0400 Subject: [PATCH 3/5] install extensions --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7ca3c65..1c6e6bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,9 @@ jobs: - name: Install test dependencies run: | python -m pip install --upgrade pip - python -m pip install -r requirements.txt + 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 From 6e76a4672f402354abbeb1f88adb12cd8e6c1b4c Mon Sep 17 00:00:00 2001 From: Robert Parker Date: Mon, 4 May 2026 14:53:40 -0400 Subject: [PATCH 4/5] typo --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c6e6bd..89f8779 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: - 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 + 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 . From 3441c7b94807544567e4bafcd692a46d11cd8d26 Mon Sep 17 00:00:00 2001 From: Robert Parker Date: Mon, 4 May 2026 15:38:25 -0400 Subject: [PATCH 5/5] update readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5df8914..4dc30ee 100644 --- a/README.md +++ b/README.md @@ -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.