Skip to content

Commit

Permalink
forward compatibility with grid2op 1.10.0 by improving copy method
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Mar 15, 2024
1 parent 379250f commit d3bb0f2
Show file tree
Hide file tree
Showing 14 changed files with 376 additions and 209 deletions.
35 changes: 21 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ jobs:
resource_class: small
steps:
- checkout
- run: apt-get update && apt-get install python3-pip -y
- run: python3 -m pip install virtualenv
- run: apt-get update && apt-get install python3-pip python3-virtualenv -y
# - run: python3 -m pip install virtualenv
- run: python3 -m virtualenv venv_test
- run:
name: "Install grid2op from source"
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
resource_class: small
steps:
- checkout
- run: apt-get update && apt-get install python3-pip -y
- run: apt-get update && apt-get install python3-pip git -y
- run: python3 -m pip install virtualenv
- run: python3 -m virtualenv venv_test
- run:
Expand All @@ -201,7 +201,7 @@ jobs:
resource_class: small
steps:
- checkout
- run: apt-get update && apt-get install python3-pip -y
- run: apt-get update && apt-get install python3-pip git -y
- run: python3 -m pip install virtualenv
- run: python3 -m virtualenv venv_test
- run:
Expand All @@ -219,7 +219,7 @@ jobs:
resource_class: small
steps:
- checkout
- run: apt-get update && apt-get install python3-pip -y
- run: apt-get update && apt-get install python3-pip git -y
- run: python3 -m pip install virtualenv
- run: python3 -m virtualenv venv_test
- run:
Expand All @@ -237,7 +237,7 @@ jobs:
resource_class: small
steps:
- checkout
- run: apt-get update && apt-get install python3-pip -y
- run: apt-get update && apt-get install python3-pip git -y
- run: python3 -m pip install virtualenv
- run: python3 -m virtualenv venv_test
- run:
Expand Down Expand Up @@ -268,11 +268,17 @@ jobs:
size: medium # ("medium" "large" "xlarge" "2xlarge")
steps:
- checkout
# - run:
# name: "Install Python"
# command: choco install python --version=3.9 # use python 3.9 for windows test
- run: py -m pip install virtualenv
- run: py -m virtualenv venv_test
- run: choco install python --version=3.10 --force -y
- run: C:\Python310\python --version
- run: C:\Python310\python -m pip install --upgrade pip setuptools wheel
- run: C:\Python310\python -m pip install virtualenv
- run: C:\Python310\python -m virtualenv venv_test
- run:
name: "Chekc python / pip version in venv"
command: |
.\venv_test\Scripts\activate
python --version
pip --version
- run:
name: "Install grid2op from source"
command: |
Expand All @@ -286,15 +292,16 @@ jobs:
pip install -U pybind11
git submodule init
git submodule update
py setup.py build
py -m pip install -e .[test]
python setup.py build
python -m pip install -e .[test]
- run:
name: "make tests"
command: |
.\venv_test\Scripts\activate
cd lightsim2grid\tests
python -m unittest discover -v
workflows:
version: 2.1
compile:
Expand All @@ -307,4 +314,4 @@ workflows:
- compile_clang11
- compile_clang13
- compile_clang14
- compile_windows
- compile_windows
Loading

0 comments on commit d3bb0f2

Please sign in to comment.