Skip to content

Commit

Permalink
fix requirement for legacy_lightsim2grid, add a test with pandapower …
Browse files Browse the repository at this point in the history
…version 2.14.9 which breaks lightsim 0.5.3
  • Loading branch information
BDonnot committed Jun 25, 2024
1 parent 400757d commit c087cbe
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,33 @@ jobs:
cd /tmp
grid2op.testinstall
legacy_lightsim_old_pp:
executor: python38 # needs to be 38: whl of lightsim were not released for 3.10 at the time
resource_class: small
steps:
- checkout
- run:
command: |
apt-get update
apt-get install -y coinor-cbc
- run: python -m pip install virtualenv
- run: python -m virtualenv venv_test
- run:
command: |
source venv_test/bin/activate
python -m pip install -U pip setuptools wheel
python -m pip install -U lightsim2grid==0.5.3 gymnasium "numpy<1.22" "pandapower<2.14.9"
- run:
command: |
source venv_test/bin/activate
python -m pip install -e .
pip freeze
- run:
command: |
source venv_test/bin/activate
export _GRID2OP_FORCE_TEST=1
python -m unittest grid2op/tests/test_basic_env_ls.py
legacy_lightsim:
executor: python38 # needs to be 38: whl of lightsim were not released for 3.10 at the time
resource_class: small
Expand All @@ -178,7 +205,7 @@ jobs:
command: |
source venv_test/bin/activate
python -m pip install -U pip setuptools wheel
python -m pip install -U lightsim2grid==0.5.3 gymnasium "numpy<1.22"
python -m pip install -U lightsim2grid==0.6.0 gymnasium
- run:
command: |
source venv_test/bin/activate
Expand Down Expand Up @@ -340,6 +367,7 @@ workflows:
test:
jobs:
- test
- legacy_lightsim_old_pp
- legacy_lightsim
install:
jobs:
Expand Down

0 comments on commit c087cbe

Please sign in to comment.