Run pandas ASV on CI #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |