forked from ethereum/execution-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
206 lines (196 loc) · 6.49 KB
/
Copy pathtest.yaml
File metadata and controls
206 lines (196 loc) · 6.49 KB
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
name: Python Specification
on:
push:
branches:
- master
- mainnet
- "forks/**"
paths-ignore:
- "**.md"
- "LICENSE*"
- ".gitignore"
- ".vscode/**"
- "whitelist.txt"
- "docs/**"
- "mkdocs.yml"
workflow_dispatch:
pull_request:
paths-ignore:
- "**.md"
- "LICENSE*"
- ".gitignore"
- ".vscode/**"
- "whitelist.txt"
- "docs/**"
- "mkdocs.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch }}
jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: recursive
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@70c4af2ed5282c51ba40566d026d6647852ffa3e # v5.0.1
- uses: ./.github/actions/setup-uv
- name: Install build dependencies
shell: bash
run: sudo DEBIAN_FRONTEND=noninteractive apt-get install --yes --force-yes build-essential pkg-config
- name: Detect Python version
id: python
shell: bash
run: echo "version=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')" >> "$GITHUB_OUTPUT"
- name: Restore mypy cache
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: .mypy_cache
key: mypy-${{ runner.os }}-py${{ steps.python.outputs.version }}-${{ hashFiles('uv.lock') }}-${{ github.sha }}
restore-keys: |
mypy-${{ runner.os }}-py${{ steps.python.outputs.version }}-${{ hashFiles('uv.lock') }}-
mypy-${{ runner.os }}-py${{ steps.python.outputs.version }}-
- name: Run static checks
run: just static
- name: Save mypy cache
if: always()
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: .mypy_cache
key: mypy-${{ runner.os }}-py${{ steps.python.outputs.version }}-${{ hashFiles('uv.lock') }}-${{ github.sha }}
- name: Validate workflow config variables
run: |
cat >> .github/actionlint.yaml << 'EOF'
# CI-only: validate vars.* references
config-variables:
- DEFAULT_PYTHON_VERSION
- UV_VERSION
EOF
uvx --from actionlint-py actionlint
fill:
name: fill (${{ matrix.label }})
runs-on: [self-hosted-ghr, size-xl-x64]
needs: static
strategy:
fail-fast: false
matrix:
include:
- label: pre-shanghai
from_fork: Frontier
until_fork: Paris
- label: shanghai-cancun
from_fork: Shanghai
until_fork: Cancun
- label: prague
from_fork: Prague
until_fork: Prague
- label: osaka
from_fork: Osaka
until_fork: Osaka
- label: amsterdam
from_fork: Amsterdam
until_fork: Amsterdam
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: recursive
- uses: ./.github/actions/setup-uv
with:
python-version: "3.14"
- uses: ./.github/actions/setup-env
- name: Run fill (${{ matrix.label }})
run: >
just fill --from ${{ matrix.from_fork }} --until ${{ matrix.until_fork }}
-m "not slow and not derived_test"
env:
PYTEST_XDIST_AUTO_NUM_WORKERS: auto
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
files: .just/fill/coverage.xml
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
fill-pypy:
runs-on: [self-hosted-ghr, size-xl-x64]
needs: static
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: recursive
- uses: ./.github/actions/setup-uv
with:
python-version: "pypy3.11"
- uses: ./.github/actions/setup-env
- name: Run fill-pypy tests
run: just fill-pypy
env:
PYPY_GC_MAX: "2G"
PYPY_GC_MIN: "1G"
json-loader:
runs-on: [self-hosted-ghr, size-xl-x64]
needs: static
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: recursive
- uses: ./.github/actions/setup-uv
with:
python-version: "3.14"
- uses: ./.github/actions/setup-env
- name: Fill and run json-loader tests
run: just json-loader
env:
PYTEST_XDIST_AUTO_NUM_WORKERS: auto
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
with:
files: .just/json-loader/coverage.xml
flags: unittests
token: ${{ secrets.CODECOV_TOKEN }}
spec-tools:
runs-on: [self-hosted-ghr, size-xl-x64]
needs: static
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: recursive
- uses: ./.github/actions/setup-uv
with:
python-version: "3.14"
- uses: ./.github/actions/setup-env
- name: Run spec-tools tests
run: just spec-tools
env:
PYTEST_XDIST_AUTO_NUM_WORKERS: auto
test-tests:
runs-on: [self-hosted-ghr, size-xl-x64]
needs: static
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: recursive
- uses: ./.github/actions/setup-uv
- uses: ./.github/actions/setup-env
- uses: ./.github/actions/build-evmone
- name: Run test-tests
run: just test-tests
env:
PYTEST_XDIST_AUTO_NUM_WORKERS: auto
test-tests-pypy:
runs-on: [self-hosted-ghr, size-xl-x64]
needs: static
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: recursive
- uses: ./.github/actions/setup-uv
with:
python-version: "pypy3.11"
- uses: ./.github/actions/setup-env
- uses: ./.github/actions/build-evmone
- name: Run test-tests-pypy
run: just test-tests-pypy
env:
PYPY_GC_MAX: "2G"
PYPY_GC_MIN: "1G"