Skip to content

Commit

Permalink
add benchmarks to master
Browse files Browse the repository at this point in the history
  • Loading branch information
collerek committed Feb 8, 2024
1 parent 11c1e5c commit 10abd08
Show file tree
Hide file tree
Showing 3 changed files with 203 additions and 33 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: codspeed-benchmarks

on:
push:
branches: [ master, pydantic_v2 ]
pull_request:
branches: [ master, pydantic_v2 ]
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:

jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.11"

- name: Install Poetry
uses: snok/[email protected]
with:
version: 1.4.2
virtualenvs-create: false

- name: Poetry details
run: |
poetry --version
poetry config --list
- name: Install dependencies
run: poetry install --extras "all"

- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: poetry run pytest benchmarks/ --codspeed
Loading

0 comments on commit 10abd08

Please sign in to comment.