Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add execution spec tests in CI #468

Closed
wants to merge 5 commits into from
Closed
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
74 changes: 74 additions & 0 deletions .github/workflows/spectests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Execution spec tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master, kaustinen-with-shapella ]
workflow_dispatch:

jobs:
spectests:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
# python-version: 'pypy3.10'
cache: ''
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22.4
- name: Fill tests
run: |
export PATH=$PATH:/home/devops/.cargo/bin
go build -v ./cmd/evm
git clone https://github.com/ethereum/execution-spec-tests -b verkle/main
cd execution-spec-tests
python3 -m venv venv
. ./venv/bin/activate
pip install -e ".[docs,lint,test]"
fill --fork EIP6800Transition -n 4 --evm-dump-dir=../tmp -v -m blockchain_test --evm-bin=../evm
- name: Consume tests
run: ./evm blocktest ./tmp

lint:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.1
- name: Download golangci-lint
run: wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.54.2
- name: Lint
run: ./bin/golangci-lint run
- name: Vet
run: go vet

test:
runs-on: self-hosted
needs: [test-process-verkle]
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.1
- name: Test
run: go test ./... -timeout=20m

test-process-verkle:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.1
- name: Test
run: go test ./core -run=TestProcessVerkle
Loading