From 1a9ac6613ed178ca3b62c760069ac2d731776858 Mon Sep 17 00:00:00 2001 From: Ludovico Bianchi Date: Fri, 20 Nov 2020 08:26:47 -0800 Subject: [PATCH] Use Windows-compatible installation steps for IDAES extensions --- .github/workflows/main.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8f332e17..6cc43160 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,7 +44,19 @@ jobs: idaes --version - name: Install IDAES extensions run: | - idaes get-extensions --platform ubuntu1804 + idaes get-extensions --verbose + # NOTE: these commands are Unix-shell specific + # and will need to be changed if we want to test on CMD.exe/Powershell + find $(idaes data-directory) -ls + # add bin directory to $PATH (only valid for subsequent steps) + echo "$(idaes bin-directory)" >> $GITHUB_PATH + - name: Test access to executables + run: | + if [ "$RUNNER_OS" == "Windows" ]; then + ipopt.exe -v + else + ipopt -v + fi - name: Run non-integration tests run: | pytest --verbose -m "not integration" tests/