Skip to content

Commit 81f08bc

Browse files
committed
fix: add uv
1 parent db51fa4 commit 81f08bc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
pull_request:
88

9+
concurrency:
10+
group: benchmark-${{ github.event_name == 'pull_request' && github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
benchmark:
1115
runs-on: ubuntu-latest
@@ -17,10 +21,18 @@ jobs:
1721
with:
1822
go-version: "1.22"
1923

24+
# setup uv and get uv path to env
25+
- name: Install uv
26+
run: |
27+
curl -fsSL https://get.uv.dev | sh
28+
echo "UV_PATH=$(which uv)" >> $GITHUB_ENV
29+
2030
- name: Setup License
2131
run: go run cmd/license/generate/main.go
2232

2333
- name: Run benchmark
34+
env:
35+
UV_PATH: ${{ env.UV_PATH }}
2436
run: |
2537
go test -run=^$ -bench=. -benchmem -benchtime=30s ./...
2638

0 commit comments

Comments
 (0)