File tree Expand file tree Collapse file tree 2 files changed +49
-4
lines changed Expand file tree Collapse file tree 2 files changed +49
-4
lines changed Original file line number Diff line number Diff line change 91
91
with :
92
92
name : Documentation
93
93
path : _build/html
94
+ benchmarks :
95
+ defaults :
96
+ run :
97
+ shell : bash -el {0}
98
+ runs-on : ubuntu-latest
99
+ steps :
100
+ - name : Checkout Repo
101
+ uses : actions/checkout@v4
102
+ - name : Cache conda
103
+ uses : actions/cache@v4
104
+ env :
105
+ # Increase this value to reset cache if ci/environment.yml has not changed
106
+ CACHE_NUMBER : 0
107
+ with :
108
+ path : ~/conda_pkgs_dir
109
+ key :
110
+ benchmarks-${{ env.CACHE_NUMBER }}-${{ hashFiles('ci/environment.yml') }}
111
+ - uses : conda-incubator/setup-miniconda@v3
112
+ with :
113
+ activate-environment : sparse-dev
114
+ allow-softlinks : true
115
+ environment-file : ci/environment.yml
116
+ python-version : ' 3.9'
117
+ miniforge-version : latest
118
+ - name : Install asv
119
+ run : |
120
+ pip install asv
121
+ asv machine --yes
122
+ - name : Run benchmarks
123
+ run : |
124
+ asv run --quick
94
125
on :
95
126
# Trigger the workflow on push or pull request,
96
127
# but only for the main branch
Original file line number Diff line number Diff line change 1
1
{
2
- "dvcs" : " git" ,
3
- "env_dir" : " .asv/env" ,
2
+ "branches" : [
3
+ " HEAD"
4
+ ],
5
+ "build_command" : [],
4
6
"environment_type" : " conda" ,
5
- "html_dir" : " .asv/html" ,
7
+ "install_command" : [
8
+ " pip install --no-deps ."
9
+ ],
10
+ "matrix" : {
11
+ "env" : {},
12
+ "env_nobuild" : {},
13
+ "req" : {
14
+ "numba" : [],
15
+ "numpy" : []
16
+ }
17
+ },
6
18
"project" : " sparse" ,
7
19
"project_url" : " https://sparse.pydata.org/" ,
8
20
"repo" : " ." ,
9
- "results_dir" : " .asv/results" ,
21
+ "uninstall_command" : [
22
+ " pip uninstall sparse --yes"
23
+ ],
10
24
"version" : 1
11
25
}
You can’t perform that action at this time.
0 commit comments