Skip to content

Commit

Permalink
finally a working CI ?
Browse files Browse the repository at this point in the history
Signed-off-by: DONNOT Benjamin <benjamin.donnot@rte-france.com>
  • Loading branch information
BDonnot committed Nov 29, 2024
1 parent fee6b04 commit 60c525a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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())"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand All @@ -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())"
Expand Down

0 comments on commit 60c525a

Please sign in to comment.