Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Fixes asv configuration (#205)
Browse files Browse the repository at this point in the history
* Fixes asv configuration
* Fix failing unit tests
* update benchmark script
  • Loading branch information
sdpython committed Jan 18, 2021
1 parent c9035d1 commit ded49e7
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 9 deletions.
3 changes: 2 additions & 1 deletion _unittests/ut__skl2onnx/test_sklearn_pipeline.py
Expand Up @@ -134,6 +134,7 @@ def test_combine_inputs_floats_ints(self):
model,
"pipeline",
[
# First input decides the output type.
("input2", FloatTensorType([None, 1])),
("input1", Int64TensorType([None, 1])),
],
Expand Down Expand Up @@ -421,5 +422,5 @@ def test_pipeline_dataframe(self):


if __name__ == "__main__":
TestSklearnPipeline().test_combine_inputs_floats_ints()
# TestSklearnPipeline().test_combine_inputs_floats_ints()
unittest.main()
18 changes: 14 additions & 4 deletions bin/run_asv.bat
@@ -1,7 +1,17 @@
@echo off
set current=%~dp0
cd %~dp0..
echo --MACHINE--
python -m asv machine --yes --config mlprodict/asv_benchmark/asv.conf.json
echo .
echo --BENCH--
cd ..
echo --RUN--
python -m asv run --show-stderr --config mlprodict/asv_benchmark/asv.conf.json
python -m asv run --show-stderr --config mlprodict/asv_benchmark/asv.conf.json --environment existing:same
echo --CLEAN--
if exist dist/html/asv rmdir dist/html/asv -r -f
rem if exist build/env rmdir build/env -r -f

echo --PUBLISH--
python -m asv publish --config mlprodict/asv_benchmark/asv.conf.json -o ../../dist/asv/html || exit 1
python -m asv publish --config mlprodict/asv_benchmark/asv.conf.json -o ../../dist/asv/html

echo --END--
cd %current%
2 changes: 1 addition & 1 deletion bin/run_asv.sh
Expand Up @@ -13,4 +13,4 @@ then
rm build/env -r -f
fi
echo --PUBLISH--
python -m asv publish --config mlprodict/asv_benchmark/asv.conf.json -o ../../dist/asv/html || exit 1
python -m asv publish --config mlprodict/asv_benchmark/asv.conf.json -o ../../dist/asv/html --environment existing:same || exit 1
2 changes: 1 addition & 1 deletion bin/run_asv2.bat
Expand Up @@ -12,4 +12,4 @@ python -m asv run --show-stderr --config=_benches\\asv.conf.json -v
@echo --PUBLISH--
python -m asv publish -o build\html --config=_benches\\asv.conf.json
@echo --END--
cd %current%
cd %current%
2 changes: 1 addition & 1 deletion mlprodict/asv_benchmark/_create_asv_helper.py
Expand Up @@ -35,7 +35,7 @@
"environment_type": "virtualenv",
"install_timeout": 600,
"show_commit_url": "https://github.com/sdpython/mlprodict/commit/",
"pythons": ["3.7"],
# "pythons": ["__PYVER__"],
"matrix": {
"cython": [],
"jinja2": [],
Expand Down
2 changes: 1 addition & 1 deletion mlprodict/asv_benchmark/asv.conf.json
Expand Up @@ -55,7 +55,7 @@

// The Pythons you'd like to test against. If not provided, defaults
// to the current version of Python used to run `asv`.
"pythons": ["3.7"],
// "pythons": ["3.8"],

// The list of conda channel names to be searched for benchmark
// dependency packages in the specified order
Expand Down

0 comments on commit ded49e7

Please sign in to comment.