forked from equinor/ert
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.5 KB
/
dark_storage_benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Benchmark Dark Storage
on:
repository_dispatch:
types: [dispatch-event]
pull_request:
push:
permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write
jobs:
benchmark:
name: Run pytest-benchmark benchmark example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
lfs: true
- uses: actions/setup-python@v4
id: setup_python
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: |
setup.py
pyproject.toml
- name: Install ert with dev-deps
run: |
pip install ".[dev]"
- name: Run benchmark
run: |
pytest tests/performance_tests/test_dark_storage_performance.py \
--benchmark-min-rounds=5 \
--benchmark-warmup=on \
--benchmark-json output.json \
-sv --runslow --benchmark-disable-gc \
--log-cli-level=DEBUG
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
name: Python Dark Storage Benchmark
tool: 'pytest'
output-file-path: output.json
benchmark-data-dir-path: dev/dark_storage_performance_benchmark
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true