forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 13
110 lines (95 loc) · 3.29 KB
/
spec-tests-branch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Execution Spec Tests - Fill and Consume (branch)
on:
push:
branches: [master, kaustinen-with-shapella]
pull_request:
branches: [master, kaustinen-with-shapella]
workflow_dispatch:
env:
EEST_USER: "ethereum"
EEST_BRANCH: "verkle/main"
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout go-ethereum
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12.4"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.4
- name: Build geth evm
run: |
go build -v ./cmd/evm
mkdir -p ${{ github.workspace }}/bin
mv evm ${{ github.workspace }}/bin/evm
chmod +x ${{ github.workspace }}/bin/evm
- name: Archive built evm
uses: actions/upload-artifact@v4
with:
name: evm
path: ${{ github.workspace }}/bin/evm
fill:
runs-on: ubuntu-latest
needs: setup
strategy:
matrix:
test-type: [genesis, conversion]
steps:
- name: Download geth evm
uses: actions/download-artifact@v4
with:
name: evm
path: ./bin
- name: Make evm binary executable and add to PATH
run: |
chmod +x ./bin/evm
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Clone execution-spec-tests and fill tests
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
git clone https://github.com/${{ env.EEST_USER }}/execution-spec-tests -b ${{ env.EEST_BRANCH }} --depth 1
cd execution-spec-tests
if [ "${{ matrix.test-type }}" == "genesis" ]; then
uv run fill --evm-bin="${{ github.workspace }}/bin/evm" --fork Verkle --output=../fixtures-${{ matrix.test-type }} -v -m blockchain_test -n auto
else
uv run fill --evm-bin="${{ github.workspace }}/bin/evm" --from Shanghai --until EIP6800Transition --output=../fixtures-${{ matrix.test-type }} -v -m blockchain_test -n auto
fi
shell: bash
- name: Upload fixtures
uses: actions/upload-artifact@v4
with:
name: fixtures-${{ matrix.test-type }}
path: fixtures-${{ matrix.test-type }}
consume:
runs-on: ubuntu-latest
needs: fill
strategy:
matrix:
test-type: [genesis, conversion]
steps:
- name: Download geth evm
uses: actions/download-artifact@v4
with:
name: evm
path: ./bin
- name: Make evm binary executable and add to PATH
run: |
chmod +x ./bin/evm
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Download fixtures
uses: actions/download-artifact@v4
with:
name: fixtures-${{ matrix.test-type }}
path: ./fixtures-${{ matrix.test-type }}
- name: Clone execution-spec-tests and consume tests
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
git clone https://github.com/${{ env.EEST_USER }}/execution-spec-tests -b ${{ env.EEST_BRANCH }}
cd execution-spec-tests
uv run consume direct --evm-bin="${{ github.workspace }}/bin/evm" --input=../fixtures-${{ matrix.test-type }} -n auto
shell: bash