Skip to content

Commit

Permalink
Merge pull request #849 from jdegenstein/benchmarks
Browse files Browse the repository at this point in the history
Add a benchmark workflow and benchmarks to build123d
  • Loading branch information
jdegenstein authored Jan 8, 2025
2 parents ea1a000 + 25181f4 commit 90a4a2b
Show file tree
Hide file tree
Showing 3 changed files with 704 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ runs:
- name: Install Requirements
shell: bash
run: |
pip install wheel mypy pytest pytest-benchmark pytest-cov pylint
pip install wheel mypy pytest pytest-cov pylint
pip install .
26 changes: 26 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: benchmarks

on: [push, pull_request, workflow_dispatch]
jobs:

tests:
strategy:
fail-fast: false
matrix:
python-version: [
# "3.10",
# "3.11",
"3.12",
]
os: [macos-13, macos-14, ubuntu-latest, windows-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup/
with:
python-version: ${{ matrix.python-version }}
- name: benchmark
run: |
pip install pytest-benchmark
python -m pytest --benchmark-only
Loading

0 comments on commit 90a4a2b

Please sign in to comment.