Skip to content

Commit

Permalink
feat: install codspeed
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 authored and CodSpeed Install Bot committed Jun 23, 2024
1 parent c335c5f commit 2a59240
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 115 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: ⚡️ Benchmarks

on:
# Run on pushes to the main branch
push:
branches:
- "master" # or "main"
# Run on pull requests
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:

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

- name: update pip
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel
- name: get pip cache dir
id: pip-cache
run: echo "::set-output name=dir::$(pip cache dir)"

- name: cache pip dependencies
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: pip|${{ runner.os }}|3.11|${{ hashFiles('setup.py') }}

- run: pip install -e ".[test]"
- uses: CodSpeedHQ/action@v2
with:
run: pytest . --codspeed
26 changes: 0 additions & 26 deletions .github/workflows/deploy.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/lint.yml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/tests.yml

This file was deleted.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def run_tests(self):
tests_require = [
"pytest>=7,<8",
"pytest-benchmark>=4,<5",
"pytest-codspeed",
"pytest-cov>=4,<5",
"pytest-mock>=3,<4",
"pytest-asyncio>=0.16,<2",
Expand Down

0 comments on commit 2a59240

Please sign in to comment.