Debian Codegraph @

.github/workflows/codspeed.yml

raw
1 ---
2 name: CodSpeed Benchmarks
3
4 on:
5 push:
6 branches: [main]
7 tags: ["*"]
8 paths:
9 - src/**.py
10 - bench/**
11 - .github/workflows/codspeed.yml
12 pull_request:
13 paths:
14 - src/**.py
15 - bench/**
16 - .github/workflows/codspeed.yml
17 workflow_dispatch:
18
19
20 env:
21 FORCE_COLOR: "1"
22 PIP_DISABLE_PIP_VERSION_CHECK: "1"
23 PIP_NO_PYTHON_VERSION_WARNING: "1"
24
25 permissions: {}
26
27 jobs:
28 codspeed:
29 name: Run CodSpeed benchmarks
30 runs-on: ubuntu-latest
31
32 steps:
33 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34 with:
35 persist-credentials: false
36 - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
37 with:
38 python-version-file: .python-version-default
39 - uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
40
41 - name: Run CodSpeed benchmarks
42 uses: CodSpeedHQ/action@281164b0f014a4e7badd2c02cecad9b595b70537 # v4.11.1
43 with:
44 mode: simulation
45 token: ${{ secrets.CODSPEED_TOKEN }}
46 run: uvx --with tox-uv tox run -e codspeed