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
18 changes: 17 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- master
- mainnet
- 'forks/**'
- "forks/**"
workflow_dispatch:
pull_request:

Expand Down Expand Up @@ -98,6 +98,22 @@ jobs:
PYPY_GC_MAX: "2G"
PYPY_GC_MIN: "1G"

benchmark:
runs-on: [self-hosted-ghr, size-xl-x64]
needs: static
steps:
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.11"
- uses: ./.github/actions/setup-env
- uses: ./.github/actions/build-evmone
- name: Fill benchmark tests
run: tox -e benchmark

json_infra:
runs-on: [self-hosted-ghr, size-xl-x64]
needs: static
Expand Down
15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,21 @@ commands =
--until Osaka \
tests

[testenv:benchmark]
description = Fill the benchmark tests using evmone-t8n (with Python)
commands =
fill \
--generate-all-formats \
--gas-benchmark-values 1 \
--evm-bin=evmone-t8n \
-m "benchmark and not state_test" \
-n auto --maxprocesses 10 --dist=loadgroup \
--basetemp="{temp_dir}/pytest" \
--log-to "{toxworkdir}/logs" \
--clean \
--fork Prague \
tests/benchmark

[testenv:optimized]
description = Run unit tests for optimized state and ethash
passenv =
Expand Down
Loading