Skip to content

fix(tooling): typecheck on source tree; not on package #2

fix(tooling): typecheck on source tree; not on package

fix(tooling): typecheck on source tree; not on package #2

name: Generate reference tests

Check failure on line 1 in .github/workflows/generate_vectors.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/generate_vectors.yml

Invalid workflow file

(Line: 39, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual 'astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e@v4'
defaults:
run:
shell: zsh -e {0}
on:
workflow_dispatch:
inputs:
repo:
description: The repository to use (e.g. user/consensus-specs)
default: ethereum/consensus-specs
type: string
required: true
ref:
description: The branch, tag or SHA to checkout and build from
default: master
type: string
required: true
schedule:
- cron: "0 2 * * *"
jobs:
generate-tests:
timeout-minutes: 720 # 12 hours
runs-on: [self-hosted-ghr-custom, size-xl-x64, profile-consensusSpecs]
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: ${{ inputs.repo }}
path: "consensus-specs"
ref: ${{ inputs.ref }}
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version-file: "consensus-specs/pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e@v4
with:
enable-cache: true
- name: Generate tests
run: |
cd consensus-specs
set -o pipefail
make reftests verbose=true 2>&1 | tee ../consensustestgen.log
cp -r presets/ ../consensus-spec-tests/presets
cp -r configs/ ../consensus-spec-tests/configs
- name: Archive configurations
run: |
cd consensus-spec-tests
tar -czvf general.tar.gz tests/general
tar -czvf minimal.tar.gz tests/minimal
tar -czvf mainnet.tar.gz tests/mainnet
- name: Upload general.tar.gz
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: General Test Configuration
path: consensus-spec-tests/general.tar.gz
- name: Upload minimal.tar.gz
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: Minimal Test Configuration
path: consensus-spec-tests/minimal.tar.gz
- name: Upload mainnet.tar.gz
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: Mainnet Test Configuration
path: consensus-spec-tests/mainnet.tar.gz
- name: Upload consensustestgen
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: consensustestgen.log
path: consensustestgen.log