File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 28
28
environment-name : xarray-tests
29
29
cache-environment : true
30
30
cache-environment-key : " ${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}-benchmark"
31
+ # add "build" because of https://github.com/airspeed-velocity/asv/issues/1385
31
32
create-args : >-
32
33
asv
34
+ build
35
+ mamba
33
36
34
37
35
38
- name : Run benchmarks
47
50
asv machine --yes
48
51
echo "Baseline: ${{ github.event.pull_request.base.sha }} (${{ github.event.pull_request.base.label }})"
49
52
echo "Contender: ${GITHUB_SHA} (${{ github.event.pull_request.head.label }})"
50
- # Use mamba for env creation
51
- # export CONDA_EXE=$(which mamba)
52
- export CONDA_EXE=$(which conda)
53
53
# Run benchmarks for current commit against base
54
54
ASV_OPTIONS="--split --show-stderr --factor $ASV_FACTOR"
55
55
asv continuous $ASV_OPTIONS ${{ github.event.pull_request.base.sha }} ${GITHUB_SHA} \
Original file line number Diff line number Diff line change 29
29
// If missing or the empty string, the tool will be automatically
30
30
// determined by looking for tools on the PATH environment
31
31
// variable.
32
- "environment_type" : " conda " ,
32
+ "environment_type" : " mamba " ,
33
33
"conda_channels" : [" conda-forge" ],
34
34
35
35
// timeout in seconds for installing any dependencies in environment
41
41
42
42
// The Pythons you'd like to test against. If not provided, defaults
43
43
// to the current version of Python used to run `asv`.
44
- "pythons" : [" 3.10 " ],
44
+ "pythons" : [" 3.11 " ],
45
45
46
46
// The matrix of dependencies to test. Each key is the name of a
47
47
// package (in PyPI) and the values are version numbers. An empty
72
72
"sparse" : [" " ],
73
73
"cftime" : [" " ]
74
74
},
75
-
76
-
75
+ // fix for bad builds
76
+ // https://github.com/airspeed-velocity/asv/issues/1389#issuecomment-2076131185
77
+ "build_command" : [
78
+ " python -m build" ,
79
+ " python -mpip wheel --no-deps --no-build-isolation --no-index -w {build_cache_dir} {build_dir}"
80
+ ],
77
81
// Combinations of libraries/python versions can be excluded/included
78
82
// from the set to test. Each entry is a dictionary containing additional
79
83
// key-value pairs to include/exclude.
You can’t perform that action at this time.
0 commit comments