Skip to content

Commit 89eee53

Browse files
Copilotphamquiluan
andcommitted
Add CircleCI caching for dataset downloads
Co-authored-by: phamquiluan <[email protected]>
1 parent 79a7717 commit 89eee53

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
executor: my-executor
1515
steps:
1616
- checkout
17+
- restore_cache:
18+
keys:
19+
- rcaeval-data-v1-{{ .Branch }}
20+
- rcaeval-data-v1-
1721
- run:
1822
name: "Install packages"
1923
command: |
@@ -30,11 +34,19 @@ jobs:
3034
name: "Reproduce BARO performance on the RE2 dataset, Train Ticket system"
3135
command: python main.py --method baro --dataset re2-tt
3236
no_output_timeout: 3h
37+
- save_cache:
38+
key: rcaeval-data-v1-{{ .Branch }}-{{ epoch }}
39+
paths:
40+
- data
3341

3442
test-download-datasets:
3543
executor: my-executor
3644
steps:
3745
- checkout
46+
- restore_cache:
47+
keys:
48+
- rcaeval-data-v1-{{ .Branch }}
49+
- rcaeval-data-v1-
3850
- run:
3951
name: "Install packages"
4052
command: |
@@ -47,6 +59,10 @@ jobs:
4759
name: "Run test"
4860
command: pytest tests/test_datasets.py
4961
no_output_timeout: 3h
62+
- save_cache:
63+
key: rcaeval-data-v1-{{ .Branch }}-{{ epoch }}
64+
paths:
65+
- data
5066

5167
workflows:
5268
main-flow:

0 commit comments

Comments
 (0)