Skip to content

Commit

Permalink
Add benchmarking with codspeed
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Dec 13, 2024
1 parent 68d01c7 commit 45ec937
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CodSpeed

on:
push:
branches:
- "main"
pull_request:
workflow_dispatch:

env:
UV_SYSTEM_PYTHON: 1

jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install uv
uses: astral-sh/setup-uv@v4
- run: uv pip install ".[dev, everest]"
- uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: |
pytest tests/ert/performance_tests --codspeed
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ dev = [
"nbsphinx",
"oil_reservoir_synthesizer",
"pytest-asyncio",
"pytest-benchmark",
"pytest-codspeed",
"pytest-cov",
"pytest-memray",
"pytest-mock",
Expand Down Expand Up @@ -173,7 +173,6 @@ markers = [
log_cli = "false"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
timeout = 360

[tool.setuptools_scm]
write_to = "src/ert/shared/version.py"
Expand Down

0 comments on commit 45ec937

Please sign in to comment.