Skip to content

Commit 93ecf9c

Browse files
committed
remove again windows in CI for automatic class testing
Signed-off-by: DONNOT Benjamin <[email protected]>
1 parent a434fd3 commit 93ecf9c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ jobs:
206206
name: darwin,
207207
os: macos-latest,
208208
}
209-
- {
210-
name: windows,
211-
os: windows-2022,
212-
}
209+
# - {
210+
# name: windows,
211+
# os: windows-2022,
212+
# }
213213
- {
214214
name: ubuntu,
215215
os: ubuntu-latest,

grid2op/tests/automatic_classes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,11 +532,12 @@ def _aux_make_env(self, env: Optional[Environment]=None):
532532
# we create the reference environment and prevent grid2op to
533533
# to delete it (because it stores the files to the class)
534534
self.ref_env = super()._aux_make_env()
535+
self.ref_env.reset(seed=0, options={"time serie id": 0})
535536
with warnings.catch_warnings():
536537
warnings.filterwarnings("ignore")
537538
obs = self.ref_env.get_obs()
538539
res = obs.get_forecast_env()
539-
self.max_iter = res._max_iter # otherwise it fails in the runner
540+
self.max_iter = min(res._max_iter, self.max_iter) # otherwise it fails in the runner
540541
else:
541542
res = env
542543
return res

0 commit comments

Comments
 (0)