Skip to content

Commit 82fdb95

Browse files
committed
try to upload coverage artifact
Signed-off-by: DONNOT Benjamin <benjamin.donnot@rte-france.com>
1 parent e7c7562 commit 82fdb95

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.circleci/config.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ jobs:
6363
cd grid2op/tests/
6464
export _GRID2OP_FORCE_TEST=1
6565
coverage run -m unittest -v $(cat /tmp/tests_run)
66-
# ls -lah | grep .coverage
67-
# - run:
68-
# command: |
69-
# ls -lah /Grid2Op/grid2op/tests/.coverage.*
66+
ls -lah | grep .coverage
7067
71-
# - store_artifacts:
72-
# path: "/Grid2Op/grid2op/tests/test_Action.py"
73-
# destination: coverage_artifacts/
68+
- run:
69+
- name: rename coverage files
70+
- command: mv .coverage .coverage.shard_test_generic_$CIRCLE_NODE_INDEX
71+
72+
- store_artifacts:
73+
path: .coverage.shard_test_generic_$CIRCLE_NODE_INDEX
74+
destination: coverage_artifacts/
7475

7576
test_agent:
7677
context: [] # no secrets needed
@@ -96,7 +97,7 @@ jobs:
9697
source venv_test/bin/activate
9798
export _GRID2OP_FORCE_TEST=1
9899
cd grid2op/tests/
99-
python -m unittest -v test_Agent test_AgentsFast test_recopowerlineperarea
100+
coverage -m unittest -v test_Agent test_AgentsFast test_recopowerlineperarea
100101
101102
test_converter:
102103
context: [] # no secrets needed

0 commit comments

Comments
 (0)