Skip to content

Commit e13ba80

Browse files
committed
Add CodSpeed CI step
1 parent d3a2510 commit e13ba80

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,34 @@ jobs:
9797
flags: ${{ matrix.os }}-${{ matrix.python-version }}
9898
token: ${{ secrets.CODECOV_TOKEN }}
9999
verbose: true
100+
benchmark:
101+
name: benchmark
102+
permissions:
103+
contents: read
104+
runs-on: "ubuntu-24.04"
105+
env:
106+
BABEL_CLDR_NO_DOWNLOAD_PROGRESS: "1"
107+
BABEL_CLDR_QUIET: "1"
108+
PIP_DISABLE_PIP_VERSION_CHECK: "1"
109+
steps:
110+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
111+
with:
112+
persist-credentials: false
113+
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
114+
with:
115+
path: cldr
116+
key: cldr-${{ hashFiles('scripts/*cldr*') }}
117+
- name: Set up Python 3.14
118+
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
119+
with:
120+
python-version: "3.14"
121+
activate-environment: 'true'
122+
- run: uv pip install -e .[dev] pytest-codspeed
123+
- run: make import-cldr
124+
- uses: CodSpeedHQ/action@88472375d0a4572cf70a9f1fe3a4e0ab8da1b924 # v5.0.1
125+
with:
126+
mode: simulation
127+
run: uv run pytest --codspeed tests/benchmarks/benchmark*py
100128
build:
101129
name: build
102130
permissions:

0 commit comments

Comments
 (0)