forked from astral-sh/uv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add standalone benchmark job
- Loading branch information
1 parent
88f600a
commit 7bbc18a
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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: "Build benchmarks" | ||
run: cargo codspeed build --features codspeed -p bench | ||
|
||
- name: "Run benchmarks" | ||
uses: CodSpeedHQ/action@v2 | ||
with: | ||
run: cargo codspeed run | ||
token: ${{ secrets.CODSPEED_TOKEN }} |