Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Performance guardrails

on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
warmed-relative-microbenchmarks:
name: Accepted exact backends / Python 3.12
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install development and Numba dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev,numba]"
- name: Run warmed relative performance guardrails
run: >-
python benchmarks/ci_performance_guardrails.py
--output benchmarks/Output/ci_performance_guardrails/performance_guardrails.json
- name: Upload performance report
if: always()
uses: actions/upload-artifact@v4
with:
name: performance-guardrails-python312
path: benchmarks/Output/ci_performance_guardrails/performance_guardrails.json
if-no-files-found: warn
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
python -m pip install --upgrade pip
pip install -e ".[dev,numba]"
- name: Run backend guardrails
run: python -m pytest tests/test_flowfield_backend_guardrails.py tests/test_vertical_numba.py tests/test_geometry_numba.py tests/test_neck_numba.py -q
run: >-
python -m pytest tests/test_flowfield_backend_guardrails.py
tests/test_vertical_numba.py tests/test_semiana_recursive_numba.py
tests/test_geometry_numba.py tests/test_neck_numba.py -q

smoke-tests:
name: Tests / Python ${{ matrix.python-version }}
Expand Down
Loading
Loading