From 60c525aba8decea81df642484fd2a01910d7643d Mon Sep 17 00:00:00 2001 From: DONNOT Benjamin Date: Fri, 29 Nov 2024 10:35:47 +0100 Subject: [PATCH] finally a working CI ? Signed-off-by: DONNOT Benjamin --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4f811cb..10fe68c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -151,6 +151,7 @@ jobs: python3 -m pip freeze - name: Check extra can be imported can be imported (with grid2op) + if: matrix.python.name != 'cp3.13' # pandapower does not support 3.13, so grid2op does not so I cannot test that for 3.13 run: | cd tmp_for_import_checking python3 -v -c "from lightsim2grid import LightSimBackend" @@ -161,6 +162,7 @@ jobs: python3 -c "from lightsim2grid.gridmodel import init_from_pandapower" - name: Check LightSimBackend can be used to create env + if: matrix.python.name != 'cp3.13' # pandapower does not support 3.13, so grid2op does not so I cannot test that for 3.13 run: | cd tmp_for_import_checking python3 -v -c "from lightsim2grid import LightSimBackend; import grid2op; env = grid2op.make('l2rpn_case14_sandbox', test=True, backend=LightSimBackend())" @@ -297,6 +299,7 @@ jobs: python3 -c "from lightsim2grid.gridmodel import GridModel" - name: Check LightSimBackend can be imported (with grid2op) + if: matrix.python.name != 'cp3.13' # pandapower does not support 3.13, so grid2op does not so I cannot test that for 3.13 run: | python -m pip install grid2op cd tmp_for_import_checking @@ -308,6 +311,12 @@ jobs: python -c "from lightsim2grid.securityAnalysis import SecurityAnalysis" python -c "from lightsim2grid.gridmodel import init_from_pandapower" + - name: Check LightSimBackend can be used to create env + if: matrix.python.name != 'cp3.13' # pandapower does not support 3.13, so grid2op does not so I cannot test that for 3.13 + run: | + cd tmp_for_import_checking + python3 -v -c "from lightsim2grid import LightSimBackend; import grid2op; env = grid2op.make('l2rpn_case14_sandbox', test=True, backend=LightSimBackend())" + # - name: Debug windows CI # run: | # python -m unittest lightsim2grid.tests.test_n1contingencyrewards.TestN1ContingencyReward_Base.test_do_nothing @@ -455,6 +464,7 @@ jobs: python -m pip freeze - name: Check extra can be imported can be imported (with grid2op) + if: matrix.python.name != 'cp3.13' # pandapower does not support 3.13, so grid2op does not so I cannot test that for 3.13 run: | cd tmp_for_import_checking python -v -c "from lightsim2grid import LightSimBackend" @@ -465,6 +475,7 @@ jobs: python -c "from lightsim2grid.gridmodel import init_from_pandapower" - name: Check LightSimBackend can be used to create env + if: matrix.python.name != 'cp3.13' # pandapower does not support 3.13, so grid2op does not so I cannot test that for 3.13 run: | cd tmp_for_import_checking python -v -c "from lightsim2grid import LightSimBackend; import grid2op; env = grid2op.make('l2rpn_case14_sandbox', test=True, backend=LightSimBackend())"