chore: empty commit to trigger a CodSpeed run #212
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: benchmark | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
# concurrency: | |
# group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }} | |
# cancel-in-progress: true | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
CARGO_TERM_COLOR: always | |
RUSTUP_MAX_RETRIES: 10 | |
PYTHON_VERSION: "3.12" | |
jobs: | |
benchmarks: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: "Checkout Branch" | |
uses: actions/checkout@v4 | |
- name: "Install Rust toolchain" | |
run: rustup show | |
- name: "Install codspeed" | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-codspeed | |
- uses: Swatinem/rust-cache@v2 | |
- name: "Install requirements and prime cache" | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libsasl2-dev libldap2-dev libkrb5-dev | |
cargo run --bin uv -- venv --cache-dir .cache | |
cargo run --bin uv -- pip compile scripts/requirements/jupyter.in --universal --exclude-newer 2024-08-08 --cache-dir .cache | |
cargo run --bin uv -- pip compile scripts/requirements/airflow.in --universal --exclude-newer 2024-08-08 --cache-dir .cache | |
- name: "Build benchmarks" | |
run: cargo codspeed build --profile profiling --features codspeed -p bench | |
- name: "Run benchmarks" | |
uses: CodSpeedHQ/action@v3 | |
with: | |
run: cargo codspeed run |