Files
ormar/.github/workflows/benchmark.yml
dependabot[bot] e18caa31e6 build(deps): bump snok/install-poetry from 1.3 to 1.4 (#1389)
Bumps [snok/install-poetry](https://github.com/snok/install-poetry) from 1.3 to 1.4.
- [Release notes](https://github.com/snok/install-poetry/releases)
- [Commits](https://github.com/snok/install-poetry/compare/v1.3...v1.4)

---
updated-dependencies:
- dependency-name: snok/install-poetry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-02 02:38:14 +00:00

39 lines
957 B
YAML

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@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Poetry
uses: snok/install-poetry@v1.4
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