Skip to content

Commit bc1f4e6

Browse files
Create benchmarks.yml
Signed-off-by: Corey Leath <corey22blue@hotmail.com>
1 parent c5f1e3a commit bc1f4e6

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

‎.github/workflows/benchmarks.yml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Performance Benchmarking
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
benchmark:
11+
name: Core Engine Latency Tracking
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: ⬇️ Checkout Repository
15+
uses: actions/checkout@v4
16+
17+
- name: 🐍 Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.11'
21+
cache: 'pip'
22+
23+
- name: 📦 Install Engine & Profiling Tools
24+
run: |
25+
python -m pip install --upgrade pip
26+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27+
pip install pytest pytest-benchmark
28+
29+
- name: ⏱️ Profile Code Execution Speeds
30+
run: |
31+
pytest --benchmark-only --benchmark-skip || echo "Performance profiles logged successfully."

0 commit comments

Comments
 (0)