Skip to content

Commit

Permalink
ci: make benchmark a separate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Oct 27, 2024
1 parent 61874f4 commit 7bef7c7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Benchmark
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Hatch
uses: pypa/hatch@install
- name: Run benchmarks
run: |
hatch run bench:all
16 changes: 1 addition & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run all tests
name: Test
on:
push:
branches: [ "main" ]
Expand All @@ -18,17 +18,3 @@ jobs:
uses: pypa/hatch@install
- name: Run tests
run: hatch test

benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Hatch
uses: pypa/hatch@install
- name: Run benchmarks
run: |
hatch run bench:all

0 comments on commit 7bef7c7

Please sign in to comment.