5050 steps :
5151
5252 - name : Checkout sources
53- uses : actions/checkout@v3
53+ uses : actions/checkout@v3 # v4 not working...
5454 with :
5555 submodules : true
5656
@@ -76,16 +76,22 @@ jobs:
7676 run : python setup.py sdist
7777
7878 - name : Install wheel
79- run : pip3 install wheelhouse/*.whl --user
79+ run : |
80+ pip3 install wheelhouse/*.whl --user
81+ pip freeze
8082
8183 # - name: Install GDB
8284 # run: yum install -y gdb
8385
84- - name : Check package can be imported
86+ - name : Check package can be imported (bare install)
8587 run : |
8688 python3 -c "import lightsim2grid"
8789 python3 -c "from lightsim2grid import *"
8890 python3 -c "from lightsim2grid.newtonpf import newtonpf"
91+ python3 -c "from lightsim2grid.timeSerie import TimeSeriesCPP"
92+ python3 -c "from lightsim2grid.contingencyAnalysis import ContingencyAnalysisCPP"
93+ python3 -c "from lightsim2grid.securityAnalysis import SecurityAnalysisCPP"
94+ python3 -c "from lightsim2grid.gridmodel import init, GridModel"
8995
9096 - name : Fix urllib3 (python 3.7)
9197 if : matrix.python.name == 'cp37'
@@ -98,22 +104,26 @@ jobs:
98104 python3 -m pip install grid2op
99105 python3 -m pip freeze
100106
101- - name : Check LightSimBackend can be imported 1
107+ - name : Check extra can be imported can be imported (with grid2op)
102108 run :
103109 python3 -v -c "from lightsim2grid import LightSimBackend"
104-
105- - name : Check LightSimBackend can be imported 2
110+ python3 -c "from lightsim2grid.timeSerie import TimeSerie"
111+ python3 -c "from lightsim2grid.contingencyAnalysis import ContingencyAnalysis"
112+ python3 -c "from lightsim2grid.physical_law_checker import PhysicalLawChecker"
113+ python3 -c "from lightsim2grid.securityAnalysis import SecurityAnalysis"
114+
115+ - name : Check LightSimBackend can be used to create env
106116 run :
107117 python3 -v -c "from lightsim2grid import LightSimBackend; import grid2op; env = grid2op.make('l2rpn_case14_sandbox', test=True, backend=LightSimBackend())"
108118
109119 - name : Upload wheel
110- uses : actions/upload-artifact@v3
120+ uses : actions/upload-artifact@v3 # v4 broken
111121 with :
112122 name : lightsim2grid-wheel-linux-${{ matrix.python.name }}
113123 path : wheelhouse/*.whl
114124
115125 - name : Upload source archive
116- uses : actions/upload-artifact@v3
126+ uses : actions/upload-artifact@v3 # v4 broken
117127 if : matrix.python.name == 'cp311'
118128 with :
119129 name : lightsim2grid-sources
@@ -157,12 +167,12 @@ jobs:
157167 steps :
158168
159169 - name : Checkout sources
160- uses : actions/checkout@v3
170+ uses : actions/checkout@v4
161171 with :
162172 submodules : true
163173
164174 - name : Setup Python
165- uses : actions/setup-python@v4
175+ uses : actions/setup-python@v5
166176 with :
167177 python-version : ${{ matrix.python.version }}
168178
@@ -210,7 +220,7 @@ jobs:
210220 python -c "from lightsim2grid import LightSimBackend; import grid2op; env = grid2op.make('l2rpn_case14_sandbox', test=True, backend=LightSimBackend())"
211221
212222 - name : Upload wheel
213- uses : actions/upload-artifact@v3
223+ uses : actions/upload-artifact@v4
214224 with :
215225 name : lightsim2grid-wheel-${{ matrix.config.name }}-${{ matrix.python.name }}
216226 path : dist/*.whl
@@ -228,12 +238,12 @@ jobs:
228238 }
229239 steps :
230240 - name : Checkout sources
231- uses : actions/checkout@v3
241+ uses : actions/checkout@v4
232242 with :
233243 submodules : true
234244
235245 - name : Setup Python
236- uses : actions/setup-python@v4
246+ uses : actions/setup-python@v5
237247 with :
238248 python-version : ${{ matrix.python.version }}
239249
@@ -272,7 +282,7 @@ jobs:
272282 python -c "from lightsim2grid import LightSimBackend; import grid2op; env = grid2op.make('l2rpn_case14_sandbox', test=True, backend=LightSimBackend())"
273283
274284 - name : Upload wheel
275- uses : actions/upload-artifact@v3
285+ uses : actions/upload-artifact@v4
276286 with :
277287 name : lightsim2grid-wheel-darwin-${{ matrix.python.name }}
278288 path : dist/*.whl
@@ -311,12 +321,12 @@ jobs:
311321 steps :
312322
313323 - name : Checkout sources
314- uses : actions/checkout@v3
324+ uses : actions/checkout@v4
315325 with :
316326 submodules : true
317327
318328 - name : Setup Python
319- uses : actions/setup-python@v4
329+ uses : actions/setup-python@v5
320330 with :
321331 python-version : ${{ matrix.python.version }}
322332
@@ -346,7 +356,7 @@ jobs:
346356 python -c "from lightsim2grid import LightSimBackend; import grid2op; env = grid2op.make('l2rpn_case14_sandbox', test=True, backend=LightSimBackend())"
347357
348358 - name : Upload wheel
349- uses : actions/upload-artifact@v3
359+ uses : actions/upload-artifact@v4
350360 with :
351361 name : wheels-darwin-${{ matrix.python.name }}
352362 path : ./wheelhouse/*.whl
@@ -363,7 +373,7 @@ jobs:
363373 path : download
364374
365375 - name : Upload wheels
366- uses : actions/upload-artifact@v3
376+ uses : actions/upload-artifact@v4
367377 with :
368378 name : lightsim2grid-wheels
369379 path : |
0 commit comments