Skip to content

Commit a61ddfb

Browse files
committed
add the LFE scorecard job
Signed-off-by: DONNOT Benjamin <benjamin.donnot@rte-france.com>
2 parents e64fe71 + 71bbb56 commit a61ddfb

73 files changed

Lines changed: 613 additions & 621 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 52 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
source venv_test/bin/activate
9494
export _GRID2OP_FORCE_TEST=1
9595
cd grid2op/tests/
96-
python -m unittest -v test_Agent test_AgentsFast test_recopowerlineperarea
96+
python -m unittest -v test_Agent test_AgentsFast test_recopowerlineperarea test_Opponent test_baseline_alert
9797
9898
test_converter:
9999
executor: grid2op-executor
@@ -168,8 +168,8 @@ jobs:
168168
source venv_test/bin/activate
169169
export _GRID2OP_FORCE_TEST=1
170170
cd grid2op/tests/
171-
python -m unittest -v test_attached_envs test_attached_envs_compat test_l2rpn_idf_2023 test_MultiMix test_timeOutEnvironment test_MaskedEnvironment test_MakeEnv test_multi_steps_env test_simenv_blackout test_get_default_env_kwargs
172-
171+
python -m unittest -v test_attached_envs test_attached_envs_compat test_l2rpn_idf_2023 test_MultiMix test_timeOutEnvironment test_MaskedEnvironment test_MakeEnv test_multi_steps_env test_simenv_blackout test_get_default_env_kwargs test_Environment test_EnvironmentCpy test_generate_classes test_basic_env_ls
172+
173173
test_alert_alarm:
174174
executor: grid2op-executor
175175
resource_class: small
@@ -195,6 +195,54 @@ jobs:
195195
cd grid2op/tests/
196196
python -m unittest -v test_AlarmFeature test_alert_gym_compat test_alert_obs_act test_alert_trust_score test_AlertReward
197197
198+
test_time_series:
199+
executor: grid2op-executor
200+
resource_class: small
201+
steps:
202+
- checkout
203+
- run: apt-get update -y
204+
- run: python -m pip install virtualenv
205+
- run: python -m virtualenv venv_test
206+
- run:
207+
command: |
208+
source venv_test/bin/activate
209+
pip install -U pip setuptools wheel
210+
- run:
211+
command: |
212+
source venv_test/bin/activate
213+
pip install -e .[test]
214+
pip freeze
215+
- run:
216+
command: |
217+
source venv_test/bin/activate
218+
export _GRID2OP_FORCE_TEST=1
219+
cd grid2op/tests/
220+
python -m unittest -v test_ts_handlers test_ChronicsHandler test_env_from_episode
221+
222+
test_backend:
223+
executor: grid2op-executor
224+
resource_class: small
225+
steps:
226+
- checkout
227+
- run: apt-get update -y
228+
- run: python -m pip install virtualenv
229+
- run: python -m virtualenv venv_test
230+
- run:
231+
command: |
232+
source venv_test/bin/activate
233+
pip install -U pip setuptools wheel
234+
- run:
235+
command: |
236+
source venv_test/bin/activate
237+
pip install -e .[test]
238+
pip freeze
239+
- run:
240+
command: |
241+
source venv_test/bin/activate
242+
export _GRID2OP_FORCE_TEST=1
243+
cd grid2op/tests/
244+
python -m unittest -v test_ts_handlers test_basicBackendInterface test_action_set_orig_state test_PandaPowerBackendDefaultFunc test_PandaPowerBackend test_BackendAction
245+
198246
test_issue:
199247
executor: grid2op-executor
200248
resource_class: small
@@ -602,6 +650,7 @@ workflows:
602650
- test_env_general
603651
- test_alert_alarm
604652
- test_issue
653+
- test_time_series
605654
- legacy_lightsim_old_pp
606655
- legacy_lightsim
607656
- test_chronix2grid

.codacy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ exclude_paths:
44
- '*.md'
55
- "examples/**"
66
- "getting_started/**"
7+
- utils/**

.github/workflows/scorecard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
branches: [ "master" ]
1616

1717
# Declare default permissions as read only.
18-
permissions: read-all
18+
permissions: {} # deny all by default
1919

2020
jobs:
2121
analysis:
@@ -29,8 +29,8 @@ jobs:
2929
# Needed to publish results and get a badge (see publish_results below).
3030
id-token: write
3131
# Uncomment the permissions below if installing in a private repository.
32-
# contents: read
33-
# actions: read
32+
contents: read
33+
actions: read
3434

3535
steps:
3636
- name: "Checkout code"

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ Native multi agents support:
100100
- add detachment
101101
- add change_bus / set_bus
102102

103+
[1.12.5] 2026-xx-yy
104+
--------------------
105+
- [FIXED] license issues in the documentation
106+
- [FIXED] remove the "assert" outside of the tests
107+
- [IMPROVED] tests splitting to reduce the duration on circle ci
103108

104109
[1.12.4] - 2026-04-28
105110
----------------------

docs/_static/colors.css

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
/*
2+
SPDX-License-Identifier: MPL-2.0
3+
This file is part of Grid2Op, Grid2Op a testbed platform to model sequential decision making in power systems.
4+
*/
5+
6+
/*Allow to add some custom colors and text decoration.
7+
For example, :black:`text in black` or :blink:`text blinking` in rST. */
8+
9+
.aqua {
10+
color: aqua;
11+
}
12+
13+
.black {
14+
color: black;
15+
}
16+
17+
.blue {
18+
color: blue;
19+
}
20+
21+
.cyan {
22+
color: cyan;
23+
}
24+
25+
.fuchsia {
26+
color: fuchsia;
27+
}
28+
29+
.gray {
30+
color: gray;
31+
}
32+
33+
.green {
34+
color: green;
35+
}
36+
37+
.lime {
38+
color: lime;
39+
}
40+
41+
.magenta {
42+
color: magenta;
43+
}
44+
45+
.maroon {
46+
color: maroon;
47+
}
48+
49+
.navy {
50+
color: navy;
51+
}
52+
53+
.olive {
54+
color: olive;
55+
}
56+
57+
.orange {
58+
color: orange;
59+
}
60+
61+
.pink {
62+
color: pink;
63+
}
64+
65+
.purple {
66+
color: purple;
67+
}
68+
69+
.red {
70+
color: red;
71+
}
72+
73+
.silver {
74+
color: silver;
75+
}
76+
77+
.teal {
78+
color: teal;
79+
}
80+
81+
.white {
82+
color: white;
83+
}
84+
85+
.yellow {
86+
color: yellow;
87+
}
88+
89+
90+
/** font type **/
91+
92+
.blink {
93+
text-decoration: blink;
94+
}
95+
96+
.it {
97+
font-style: italic;
98+
}
99+
100+
.large {
101+
font-size: large;
102+
}
103+
104+
.line {
105+
text-decoration: line-through;
106+
}
107+
108+
.ob {
109+
font-style: oblique;
110+
}
111+
112+
.over {
113+
text-decoration: overline;
114+
}
115+
116+
.small {
117+
font-size: small;
118+
}
119+
120+
.smallpar {
121+
font-size: small;
122+
}
123+
124+
.strike {
125+
text-decoration: line-through;
126+
}
127+
128+
.under {
129+
text-decoration: underline;
130+
}

0 commit comments

Comments
 (0)