File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 40
40
- name : Install Python dependencies
41
41
run : |
42
42
python -m pip install -U pip
43
- - name : Run tests
43
+ python -m pip install asv virtualenv
44
+
45
+ - name : Run benchmarks
44
46
run : |
45
47
set -eu
46
48
run_asv () {
53
55
asv run --strict --verbose --show-stderr -E existing --set-commit-hash $(git rev-parse HEAD)
54
56
}
55
57
56
- pip install asv virtualenv
57
58
asv machine --yes
58
59
git fetch origin main:main
59
60
git update-ref refs/bm/pr HEAD
@@ -62,15 +63,17 @@ jobs:
62
63
git update-ref refs/bm/merge-target $(git log -n 1 --pretty=format:"%H" main --)
63
64
git checkout --force refs/bm/pr --
64
65
# Install the library
65
- LIBBSON_INSTALL_DIR=$(pwd)/libbson python -m pip install -vvv - e ".[test]"
66
+ LIBBSON_INSTALL_DIR=$(pwd)/libbson python -m pip install -e ".[test]"
66
67
run_asv
67
68
68
69
69
70
git checkout --force refs/bm/merge-target --
70
71
# Install the library
71
- LIBBSON_INSTALL_DIR=$(pwd)/libbson python -m pip install -vvv - e ".[test]"
72
+ LIBBSON_INSTALL_DIR=$(pwd)/libbson python -m pip install -e ".[test]"
72
73
run_asv
73
74
75
+ - name : Compare benchmarks
76
+ run : |
74
77
asv compare refs/bm/merge-target refs/bm/pr --
75
78
- name : Fail if any benchmarks have slowed down too much
76
79
run : |
You can’t perform that action at this time.
0 commit comments