1 parent 13e6419 commit 6eb80ceCopy full SHA for 6eb80ce
2 files changed
.ci/benchmark.sh
@@ -0,0 +1,7 @@
1
+#!/bin/bash
2
+
3
+set -e
4
5
+python3 -m pip install pytest-benchmark
6
7
+python3 -bb -m pytest -vv --benchmark-only --benchmark-autosave Tests/benchmark*
.github/workflows/test.yml
@@ -163,6 +163,16 @@ jobs:
163
flags: ${{ matrix.os == 'ubuntu-latest' && 'GHA_Ubuntu' || 'GHA_macOS' }}
164
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
165
166
+ - name: Run benchmarks
167
+ run: |
168
+ .ci/benchmark.sh
169
170
+ - name: Upload benchmarks
171
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
172
+ with:
173
+ name: benchmarks-${{ matrix.os }}-${{ matrix.python-version }}
174
+ path: .benchmarks
175
176
success:
177
permissions:
178
contents: none
0 commit comments