-
-
Notifications
You must be signed in to change notification settings - Fork 19
80 lines (67 loc) · 2.14 KB
/
bench-base.yaml
File metadata and controls
80 lines (67 loc) · 2.14 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Track benchmark results for the base (devel) branch on bencher.dev
on:
push:
branches:
- devel
name: Benchmarks (base)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
jobs:
benchmark:
runs-on: ubuntu-latest
permissions:
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get -y install hdf5-tools libsz2 libaec-dev
- name: Setup R and Bioconductor
uses: grimbough/bioc-actions/setup-bioc@v1
with:
bioc-version: devel
- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::bench
any::devtools
any::jsonlite
any::reticulate
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install Python dependencies
run: pip install anndata dummy-anndata
- name: Configure reticulate
run: echo "RETICULATE_PYTHON=$(which python)" >> $GITHUB_ENV
- name: Install Bencher CLI
uses: bencherdev/bencher@v0.6.5
- name: Run benchmarks
run: Rscript benchmarks/run_benchmarks.R --output results.json
- name: Track benchmarks with Bencher
run: |
bencher run \
--project anndatar \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
--branch devel \
--testbed ubuntu-latest \
--threshold-measure latency \
--threshold-test t_test \
--threshold-max-sample-size 64 \
--threshold-upper-boundary 0.99 \
--threshold-measure memory \
--threshold-test t_test \
--threshold-max-sample-size 64 \
--threshold-upper-boundary 0.99 \
--thresholds-reset \
--err \
--adapter json \
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
--file results.json