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 Apr 15, 2024
1 parent 5fb7b54 commit 9c08956
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 119 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.

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

This file was deleted.

5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ def run_tests(self):


tests_require = [
"pytest>=6,<7",
"pytest-benchmark>=3.4,<4",
"pytest>=7",
"pytest-benchmark>=3.4",
"pytest-codspeed",
"pytest-cov>=3,<4",
"pytest-mock>=3,<4",
"pytest-asyncio>=0.16,<2",
Expand Down

0 comments on commit 9c08956

Please sign in to comment.