Skip to content

Commit

Permalink
Simplifying solver calls : force to call ortools (to be reverted)
Browse files Browse the repository at this point in the history
  • Loading branch information
guilpier-code committed Oct 21, 2024
1 parent b57f845 commit e1dbef2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ jobs:
run: |
git submodule update --init --remote --recursive src/tests/resources/Antares_Simulator_Tests_NR
- name: Run named mps tests
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
uses: ./.github/workflows/run-tests
with:
simtest-tag: ${{ env.SIMTEST }}
batch-name: valid-named-mps
os: ${{ env.os }}
variant: "named-mps"
#- name: Run named mps tests
# if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
# uses: ./.github/workflows/run-tests
# with:
# simtest-tag: ${{ env.SIMTEST }}
# batch-name: valid-named-mps
# os: ${{ env.os }}
# variant: "named-mps"

- name: Run unfeasibility-related tests
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
Expand Down Expand Up @@ -240,13 +240,13 @@ jobs:
with:
feature: "features/short_tests.feature"

- name: Run mps tests
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
uses: ./.github/workflows/run-tests
with:
simtest-tag: ${{ env.SIMTEST }}
batch-name: valid-mps
os: ${{ env.os }}
#- name: Run mps tests
# if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
# uses: ./.github/workflows/run-tests
# with:
# simtest-tag: ${{ env.SIMTEST }}
# batch-name: valid-mps
# os: ${{ env.os }}

- name: Run tests for adequacy patch (CSR)
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
Expand All @@ -257,7 +257,7 @@ jobs:
os: ${{ env.os }}

- name: Run parallel tests
if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }}
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
uses: ./.github/workflows/run-tests
with:
simtest-tag: ${{ env.SIMTEST }}
Expand All @@ -275,7 +275,7 @@ jobs:
variant: "tsgenerator"

- name: Run medium-tests
if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }}
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
uses: ./.github/workflows/run-tests
with:
simtest-tag: ${{ env.SIMTEST }}
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/windows-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ jobs:
run: |
git submodule update --init --remote src/tests/resources/Antares_Simulator_Tests_NR
- name: Run named mps tests
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && ! cancelled() }}
uses: ./.github/workflows/run-tests
with:
simtest-tag: ${{ env.SIMTEST }}
batch-name: valid-named-mps
os: ${{ env.os }}
variant: "named-mps"
#- name: Run named mps tests
# if: ${{ env.RUN_SIMPLE_TESTS == 'true' && ! cancelled() }}
# uses: ./.github/workflows/run-tests
# with:
# simtest-tag: ${{ env.SIMTEST }}
# batch-name: valid-named-mps
# os: ${{ env.os }}
# variant: "named-mps"

- name: Run unfeasibility-related tests
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && ! cancelled() }}
Expand Down Expand Up @@ -250,16 +250,16 @@ jobs:
with:
feature: "features/short_tests.feature"

- name: Run mps tests
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
uses: ./.github/workflows/run-tests
with:
simtest-tag: ${{ env.SIMTEST }}
batch-name: valid-mps
os: ${{ env.os }}
#- name: Run mps tests
# if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
# uses: ./.github/workflows/run-tests
# with:
# simtest-tag: ${{ env.SIMTEST }}
# batch-name: valid-mps
# os: ${{ env.os }}

- name: Run parallel tests
if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }}
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
uses: ./.github/workflows/run-tests
with:
simtest-tag: ${{ env.SIMTEST }}
Expand All @@ -277,7 +277,7 @@ jobs:
variant: "tsgenerator"

- name: Run medium-tests
if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }}
if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }}
uses: ./.github/workflows/run-tests
with:
simtest-tag: ${{ env.SIMTEST }}
Expand Down
6 changes: 3 additions & 3 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ if(Python3_Interpreter_FOUND)
# TODO : add more study batches
add_test(
NAME unfeasible
COMMAND Python3::Interpreter -m pytest -m unfeasible --solver-path=$<TARGET_FILE:antares-solver>
COMMAND Python3::Interpreter -m pytest -m unfeasible --solver-path=$<TARGET_FILE:antares-solver> --use-ortools --ortools-solver sirius
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/run-study-tests"
)

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

Expand All @@ -73,7 +73,7 @@ if(Python3_Interpreter_FOUND)

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

Expand Down

0 comments on commit e1dbef2

Please sign in to comment.