Skip to content

Commit c087cbe

Browse files
committed
fix requirement for legacy_lightsim2grid, add a test with pandapower version 2.14.9 which breaks lightsim 0.5.3
1 parent 400757d commit c087cbe

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.circleci/config.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,33 @@ jobs:
163163
cd /tmp
164164
grid2op.testinstall
165165
166+
legacy_lightsim_old_pp:
167+
executor: python38 # needs to be 38: whl of lightsim were not released for 3.10 at the time
168+
resource_class: small
169+
steps:
170+
- checkout
171+
- run:
172+
command: |
173+
apt-get update
174+
apt-get install -y coinor-cbc
175+
- run: python -m pip install virtualenv
176+
- run: python -m virtualenv venv_test
177+
- run:
178+
command: |
179+
source venv_test/bin/activate
180+
python -m pip install -U pip setuptools wheel
181+
python -m pip install -U lightsim2grid==0.5.3 gymnasium "numpy<1.22" "pandapower<2.14.9"
182+
- run:
183+
command: |
184+
source venv_test/bin/activate
185+
python -m pip install -e .
186+
pip freeze
187+
- run:
188+
command: |
189+
source venv_test/bin/activate
190+
export _GRID2OP_FORCE_TEST=1
191+
python -m unittest grid2op/tests/test_basic_env_ls.py
192+
166193
legacy_lightsim:
167194
executor: python38 # needs to be 38: whl of lightsim were not released for 3.10 at the time
168195
resource_class: small
@@ -178,7 +205,7 @@ jobs:
178205
command: |
179206
source venv_test/bin/activate
180207
python -m pip install -U pip setuptools wheel
181-
python -m pip install -U lightsim2grid==0.5.3 gymnasium "numpy<1.22"
208+
python -m pip install -U lightsim2grid==0.6.0 gymnasium
182209
- run:
183210
command: |
184211
source venv_test/bin/activate
@@ -340,6 +367,7 @@ workflows:
340367
test:
341368
jobs:
342369
- test
370+
- legacy_lightsim_old_pp
343371
- legacy_lightsim
344372
install:
345373
jobs:

0 commit comments

Comments
 (0)