From 1e8b146188f45da9a5f0c21ea2cc3d797d5294dc Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Tue, 28 Jan 2025 14:06:37 +0100 Subject: [PATCH] Revert "tmp disable tests" This reverts commit 4fc6852c06a69dc1c8ed1ce20b6e9fd4c4d0de75. --- .github/workflows/ubuntu.yml | 274 ++++++++++++++-------------- .github/workflows/windows-vcpkg.yml | 272 +++++++++++++-------------- 2 files changed, 273 insertions(+), 273 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index ceb8db8cdc..47b2932334 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -150,143 +150,143 @@ 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 unfeasibility-related tests - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # run: | - # cd _build - # ctest -C Release --output-on-failure -R "^unfeasible$" - # - # - name: Run unit and end-to-end tests - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # run: | - # cd _build - # ctest -C Release --output-on-failure -L "unit|end-to-end" - # - # - # - name: Upload logs for failed tests - # if: ${{ failure() }} - # uses: actions/upload-artifact@v4 - # with: - # name: test-log - # path: ${{ github.workspace }}/_build/Testing/Temporary/LastTest.log - # - # - name: Run tests about infinity on BCs RHS - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-v830 - # os: ${{ env.os }} - # - # - name: Run MILP with CBC - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-milp - # variant: "milp-cbc" - # os: ${{ env.os }} - # - # - name: Run tests on adequacy patch (CSR) - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: adequacy-patch-CSR - # os: ${{ env.os }} - # - # - name: Run tests introduced in 8.6.0 - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-v860 - # os: ${{ env.os }} - # - # - name: Run tests introduced in 8.7.0 - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-v870 - # os: ${{ env.os }} - # - # - name: Run tests introduced in 9.1.0 - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-v910 - # os: ${{ env.os }} - # - # - name: Run tests introduced in 9.2.0 - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-v920 - # os: ${{ env.os }} - # - # - name: Run short-tests - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: short-tests - # os: ${{ env.os }} - # - # - name: Run cucumber on short-tests - # uses: ./.github/workflows/cucumber-tests - # 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 parallel tests - # if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-parallel - # os: ${{ env.os }} - # variant: "parallel" - # - # - name: Run tests for time series generator tool - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: ts-generator - # os: ${{ env.os }} - # variant: "tsgenerator" - # - # - name: Run medium-tests - # if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: medium-tests - # os: ${{ env.os }} - # - # - name: Run cucumber on medium-tests - # uses: ./.github/workflows/cucumber-tests - # with: - # feature: "features/medium_tests.feature" + - 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() }} + run: | + cd _build + ctest -C Release --output-on-failure -R "^unfeasible$" + + - name: Run unit and end-to-end tests + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + run: | + cd _build + ctest -C Release --output-on-failure -L "unit|end-to-end" + + + - name: Upload logs for failed tests + if: ${{ failure() }} + uses: actions/upload-artifact@v4 + with: + name: test-log + path: ${{ github.workspace }}/_build/Testing/Temporary/LastTest.log + + - name: Run tests about infinity on BCs RHS + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-v830 + os: ${{ env.os }} + + - name: Run MILP with CBC + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-milp + variant: "milp-cbc" + os: ${{ env.os }} + + - name: Run tests on adequacy patch (CSR) + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: adequacy-patch-CSR + os: ${{ env.os }} + + - name: Run tests introduced in 8.6.0 + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-v860 + os: ${{ env.os }} + + - name: Run tests introduced in 8.7.0 + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-v870 + os: ${{ env.os }} + + - name: Run tests introduced in 9.1.0 + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-v910 + os: ${{ env.os }} + + - name: Run tests introduced in 9.2.0 + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-v920 + os: ${{ env.os }} + + - name: Run short-tests + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: short-tests + os: ${{ env.os }} + + - name: Run cucumber on short-tests + uses: ./.github/workflows/cucumber-tests + 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 parallel tests + if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-parallel + os: ${{ env.os }} + variant: "parallel" + + - name: Run tests for time series generator tool + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: ts-generator + os: ${{ env.os }} + variant: "tsgenerator" + + - name: Run medium-tests + if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: medium-tests + os: ${{ env.os }} + + - name: Run cucumber on medium-tests + uses: ./.github/workflows/cucumber-tests + with: + feature: "features/medium_tests.feature" - name: Run long-tests-1 if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }} diff --git a/.github/workflows/windows-vcpkg.yml b/.github/workflows/windows-vcpkg.yml index b9c05d0ec1..5fb4b19603 100644 --- a/.github/workflows/windows-vcpkg.yml +++ b/.github/workflows/windows-vcpkg.yml @@ -152,142 +152,142 @@ 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 unfeasibility-related tests - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && ! cancelled() }} - # run: | - # cd _build - # ctest -C Release --output-on-failure -R "^unfeasible$" - # - # - name: Run unit and end-to-end tests - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && ! cancelled() }} - # run: | - # cd _build - # ctest -C Release --output-on-failure -L "unit|end-to-end" -LE ortools - # - # - name: Upload build on failure - # if: ${{ failure() }} - # uses: actions/upload-artifact@v4 - # with: - # name: MPS-diff - # path: ${{ github.workspace }}/src/tests/mps - # - # - name: Run tests for adequacy patch (CSR) - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && ! cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: adequacy-patch-CSR - # os: ${{ env.os }} - # - # - name: Run tests about infinity on BCs RHS - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-v830 - # os: ${{ env.os }} - - # - name: Run MILP with CBC - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-milp - # variant: "milp-cbc" - # os: ${{ env.os }} - - # - name: Run tests introduced in 8.6.0 - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-v860 - # os: ${{ env.os }} - # - # - name: Run tests introduced in 8.7.0 - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-v870 - # os: ${{ env.os }} - # - # - name: Run tests introduced in 9.1.0 - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-v910 - # os: ${{ env.os }} - # - # - name: Run tests introduced in 9.2.0 - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-v920 - # os: ${{ env.os }} - # - # - name: Run short-tests - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: short-tests - # os: ${{ env.os }} - # - # - name: Run cucumber on short-tests - # uses: ./.github/workflows/cucumber-tests - # 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 parallel tests - # if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: valid-parallel - # os: ${{ env.os }} - # variant: "parallel" - # - # - name: Run tests for time series generator tool - # if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: ts-generator - # os: ${{ env.os }} - # variant: "tsgenerator" - # - # - name: Run medium-tests - # if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }} - # uses: ./.github/workflows/run-tests - # with: - # simtest-tag: ${{ env.SIMTEST }} - # batch-name: medium-tests - # os: ${{ env.os }} - # - # - name: Run cucumber on medium-tests - # uses: ./.github/workflows/cucumber-tests - # with: - # feature: "features/medium_tests.feature" + - 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() }} + run: | + cd _build + ctest -C Release --output-on-failure -R "^unfeasible$" + + - name: Run unit and end-to-end tests + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && ! cancelled() }} + run: | + cd _build + ctest -C Release --output-on-failure -L "unit|end-to-end" -LE ortools + + - name: Upload build on failure + if: ${{ failure() }} + uses: actions/upload-artifact@v4 + with: + name: MPS-diff + path: ${{ github.workspace }}/src/tests/mps + + - name: Run tests for adequacy patch (CSR) + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && ! cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: adequacy-patch-CSR + os: ${{ env.os }} + + - name: Run tests about infinity on BCs RHS + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-v830 + os: ${{ env.os }} + + - name: Run MILP with CBC + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-milp + variant: "milp-cbc" + os: ${{ env.os }} + + - name: Run tests introduced in 8.6.0 + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-v860 + os: ${{ env.os }} + + - name: Run tests introduced in 8.7.0 + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-v870 + os: ${{ env.os }} + + - name: Run tests introduced in 9.1.0 + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-v910 + os: ${{ env.os }} + + - name: Run tests introduced in 9.2.0 + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-v920 + os: ${{ env.os }} + + - name: Run short-tests + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: short-tests + os: ${{ env.os }} + + - name: Run cucumber on short-tests + uses: ./.github/workflows/cucumber-tests + 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 parallel tests + if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: valid-parallel + os: ${{ env.os }} + variant: "parallel" + + - name: Run tests for time series generator tool + if: ${{ env.RUN_SIMPLE_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: ts-generator + os: ${{ env.os }} + variant: "tsgenerator" + + - name: Run medium-tests + if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }} + uses: ./.github/workflows/run-tests + with: + simtest-tag: ${{ env.SIMTEST }} + batch-name: medium-tests + os: ${{ env.os }} + + - name: Run cucumber on medium-tests + uses: ./.github/workflows/cucumber-tests + with: + feature: "features/medium_tests.feature" - name: Run long-tests-1 if: ${{ env.RUN_EXTENDED_TESTS == 'true' && !cancelled() }}