We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 594716f commit 249a987Copy full SHA for 249a987
1 file changed
.github/workflows/test_benchmarks.yml
@@ -33,6 +33,15 @@ on:
33
default: "."
34
required: false
35
type: string
36
+ cache_dir:
37
+ description: |
38
+ Directories to cache in the workflow. This can be used to avoid
39
+ repeated data downloads that might hit rate limits when running
40
+ CI multiple times in a row, or to fasten large download chunks
41
+ when installing dependencies.
42
+ default: ""
43
+ required: false
44
+ type: string
45
46
# Cancel in-progress workflows when pushing
47
# a new commit on the same branch
@@ -79,6 +88,13 @@ jobs:
79
88
80
89
- run: conda info
81
90
91
+ - name: Cache directories
92
+ if: ${{ inputs.cache_dir != '' }}
93
+ uses: actions/cache@v5
94
+ with:
95
+ path: ${{ inputs.cache_dir }}
96
+ key: ${{ runner.os }}-${{ inputs.cache_dir }}
97
+
82
98
- name: Install benchopt and its dependencies
83
99
run: |
84
100
conda info
0 commit comments