Skip to content

Commit

Permalink
chore(ci): separate the benchmark workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Jul 4, 2023
1 parent 631569a commit fc4fbad
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,3 @@ jobs:
run: pip install pytest-benchmark~=4.0.0
- name: Run tests
run: pytest -vs

benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.12.0-beta.1"
- name: Install local version of pytest-codspeed
run: pip install .

- name: Run benchmarks
uses: CodSpeedHQ/action@main
with:
run: pytest tests/benchmarks/ --codspeed
23 changes: 23 additions & 0 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: benchmarks
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:

jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.12
uses: actions/setup-python@v2
with:
python-version: "3.12.0-beta.3"
- name: Install local version of pytest-codspeed
run: pip install .
- name: Run benchmarks
uses: CodSpeedHQ/action@main
with:
run: pytest tests/benchmarks/ --codspeed

0 comments on commit fc4fbad

Please sign in to comment.