Skip to content

Commit

Permalink
Add tests for MILP using CBC (#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes authored Dec 21, 2023
1 parent 51d6bd4 commit ca7e092
Showing 4 changed files with 25 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -162,6 +162,15 @@ jobs:
batch-name: valid-v830
os: ${{ matrix.test-platform }}

- name: Run MILP with CBC
if: ${{ env.IS_PUSH == 'true' }}
uses: ./.github/workflows/run-tests
with:
simtest-tag: ${{steps.simtest-version.outputs.prop}}
batch-name: valid-milp
variant: "milp-cbc"
os: ${{ matrix.test-platform }}

- name: Run tests introduced in v860
if: ${{ env.IS_PUSH == 'true' }}
uses: ./.github/workflows/run-tests
9 changes: 9 additions & 0 deletions .github/workflows/windows-vcpkg.yml
Original file line number Diff line number Diff line change
@@ -196,6 +196,15 @@ jobs:
batch-name: valid-v830
os: ${{ matrix.test-platform }}

- name: Run MILP with CBC
if: ${{ env.IS_PUSH == 'true' }}
uses: ./.github/workflows/run-tests
with:
simtest-tag: ${{steps.simtest-version.outputs.prop}}
batch-name: valid-milp
variant: "milp-cbc"
os: ${{ matrix.test-platform }}

- name: Run tests introduced in v860
uses: ./.github/workflows/run-tests
with:
2 changes: 1 addition & 1 deletion simtest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v8.7.2"
"version": "v8.8.0-rc1"
}
6 changes: 6 additions & 0 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -65,6 +65,12 @@ if(Python3_Interpreter_FOUND)
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/run-study-tests"
)

add_test(
NAME milp-cbc
COMMAND Python3::Interpreter -m pytest -m json --solver-path=$<TARGET_FILE:antares-solver> --use-ortools --ortools-solver coin
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/run-study-tests"
)

add_test(
NAME parallel
COMMAND Python3::Interpreter -m pytest -m json --solver-path=$<TARGET_FILE:antares-solver> --force-parallel

0 comments on commit ca7e092

Please sign in to comment.