29 lines
676 B
YAML
29 lines
676 B
YAML
name: CodSpeed
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main" # or "master"
|
|
pull_request:
|
|
# `workflow_dispatch` allows CodSpeed to trigger backtest
|
|
# performance analysis in order to generate initial data.
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
benchmarks:
|
|
name: Run benchmarks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.9"
|
|
|
|
- name: Install dependencies
|
|
run: pip install -r requirements.txt
|
|
|
|
- name: Run benchmarks
|
|
uses: CodSpeedHQ/action@v3
|
|
with:
|
|
token: ${{ secrets.CODSPEED_TOKEN }}
|
|
run: pytest tests/ --codspeed |