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 <[email protected]>
  • Loading branch information
BDonnot committed Nov 29, 2024
1 parent 60c525a commit b74d400
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
python3 -c "from lightsim2grid.gridmodel import GridModel"
- name: Check package can be imported (bare install, numpy < 2)
if: matrix.python.name != 'cp37' && matrix.python.name != 'cp38' && matrix.python.name != 'cp3.13'
if: matrix.python.name != 'cp37' && matrix.python.name != 'cp38' && matrix.python.name != 'cp313'
run: |
python3 -m pip install "numpy<2"
cd tmp_for_import_checking
Expand All @@ -151,7 +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
if: matrix.python.name != 'cp313' # 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 @@ -162,7 +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
if: matrix.python.name != 'cp313' # 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 @@ -299,7 +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
if: matrix.python.name != 'cp313' # 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 @@ -312,11 +312,11 @@ 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
if: matrix.python.name != 'cp313' # 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 @@ -464,7 +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
if: matrix.python.name != 'cp313' # 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 @@ -475,7 +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
if: matrix.python.name != 'cp313' # 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 b74d400

Please sign in to comment.