Skip to content

Commit

Permalink
add back circleci tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BDonnot committed Jul 24, 2024
1 parent 3bc118b commit c598d78
Showing 1 changed file with 50 additions and 14 deletions.
64 changes: 50 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ executors:

jobs:
test_legacy_grid2op:
executor: gcc_13
executor: gcc_14
resource_class: small
steps:
- checkout
Expand All @@ -83,6 +83,25 @@ jobs:
source venv_test/bin/activate
python -m unittest lightsim2grid/tests/test_compat_legacy_grid2op.py
compile_gcc13:
executor: gcc_13
resource_class: small
steps:
- checkout
- run: apt-get update && apt-get install python3-full python3-dev python3-pip python3-virtualenv git -y
- run: python3 -m virtualenv venv_test
- run:
command: |
source venv_test/bin/activate
pip install --upgrade pip setuptools wheel
pip install -U grid2op
pip install -U pybind11
git submodule init
git submodule update
make
CC=gcc python setup.py build
python -m pip install -U .
compile_gcc12:
executor: gcc_12
resource_class: small
Expand Down Expand Up @@ -177,8 +196,8 @@ jobs:
make
CC=gcc python setup.py build
python -m pip install -U .
compile_gcc13:
executor: gcc_13
compile_and_test_gcc14:
executor: gcc_14
resource_class: medium
steps:
- checkout
Expand Down Expand Up @@ -365,7 +384,25 @@ jobs:
CC=clang python setup.py build
CC=clang python -m pip install -U .
compile_clang17:
executor: clang17
executor: clang16
resource_class: small
steps:
- checkout
- run: apt-get update && apt-get install python3-full python3-dev python3-pip python3-virtualenv git -y
- run: python3 -m virtualenv venv_test
- run:
command: |
source venv_test/bin/activate
pip install --upgrade pip setuptools wheel
pip install -U grid2op
pip install -U pybind11
git submodule init
git submodule update
make
CC=clang python setup.py build
CC=clang python -m pip install -U .
compile_and_test_clang18:
executor: clang18
resource_class: medium
steps:
- checkout
Expand Down Expand Up @@ -399,7 +436,7 @@ jobs:
source venv_test/bin/activate
cd lightsim2grid/tests/
python -m unittest discover -v
compile_windows:
compile_and_test_windows:
executor:
name: win/default # executor type
size: large # ("medium" "large" "xlarge" "2xlarge")
Expand Down Expand Up @@ -437,26 +474,25 @@ jobs:
command: |
.\venv_test\Scripts\activate
cd lightsim2grid\tests
python -m unittest test_n1contingencyrewards.TestN1ContingencyReward_Base.test_do_nothing
# python -m unittest discover -v
workflows:
version: 2.1
compile:
jobs:
# - compile_gcc8 # kept
- compile_gcc8
# - compile_gcc10
# - compile_gcc11
# - compile_gcc12
# - compile_gcc13 # kept
- compile_gcc13
# - compile_clang10 # does not work I don't know why, too lazy to check
# - compile_clang11 # kept
- compile_clang11
# - compile_clang13
# - compile_clang14
# - compile_clang15
# - compile_clang16
# - compile_clang17 # kept
- compile_windows
# - test_legacy_grid2op # added
# - compile_clang18 # added
# - compile_gcc14 # added
- compile_clang17
- test_legacy_grid2op
- compile_and_test_windows
- compile_and_test_clang18
- compile_and_test_gcc14

0 comments on commit c598d78

Please sign in to comment.