-
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (56 loc) · 1.51 KB
/
asv.yaml
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
name: Run ASV
on:
# TODO: Change to chron job
pull_request:
branches:
- main
env:
ENV_FILE: environment.yml
PANDAS_CI: 1
permissions:
contents: read
# pre-commit run by https://pre-commit.ci/
jobs:
asv-benchmarks:
name: ASV Benchmarks
runs-on: ubuntu-24.04
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: asv-runner
- name: Checkout
uses: actions/checkout@v4
with:
repository: pandas-dev/pandas
fetch-depth: 0
path: pandas
- name: Copy pandas condarc
run: |
mkdir ci
cp ./pandas/ci/.condarc ci/.condarc
- name: Show files
run: ls -la
- name: Set up Conda
uses: ./.github/actions/setup-conda
with:
environment-file: ./pandas/environment.yml
- name: Build Pandas
uses: ./.github/actions/build_pandas
- name: Run ASV benchmarks
run: |
cd pandas/asv_bench
asv machine --yes
asv run --durations=30 --python=same --set-commit-hash=$(git rev-parse HEAD) --show-stderr --machine=asvrunner -b ^groupby.GroupByCythonAgg
- name: Process ASV results
run: |
python asv-runner/process_results.py
- name: Save results as an artifact
uses: actions/upload-artifact@v4
with:
name: results
path: results.parquet
retention-days: 14