diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77c6d41..9dcacf3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + submodules: true - name: Set up Python 3.x uses: actions/setup-python@v5 with: @@ -20,5 +22,7 @@ jobs: python-version: '3.x' - name: Install dependencies run: pip install -r requirements.txt + - name: Build and install eth-specs + run: ./install-eth-specs.sh - name: Run tests run: python -m unittest diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b02051b --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "consensus-specs"] + path = eth-specs + url = git@github.com:ethereum/consensus-specs.git + branch = dev diff --git a/eth-specs b/eth-specs new file mode 160000 index 0000000..ae3ef6f --- /dev/null +++ b/eth-specs @@ -0,0 +1 @@ +Subproject commit ae3ef6f330846cae283e7748f423ce54128ef6d4 diff --git a/install-eth-specs.sh b/install-eth-specs.sh new file mode 100755 index 0000000..fd9c479 --- /dev/null +++ b/install-eth-specs.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +cd ./eth-specs +pip install -r requirements_preinstallation.txt +python setup.py sdist bdist_wheel +pip install dist/*.whl \ No newline at end of file