Skip to content

Commit

Permalink
Add eth-specs submodule (#60)
Browse files Browse the repository at this point in the history
* Added eth specs submodule

* Rename to eth-specs instead

* Added install script for ethspecs module

* Use python and pip instead of 3

* Load eth-specs in ci

* Add checkout submodules to ci

* Make install script executable

* Added missing install command in script

* Added missing submodule

* Move to eth-specs for building
  • Loading branch information
danielSanchezQ authored Jan 31, 2024
1 parent 7df4f95 commit 0f6bcf1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ 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:
# Semantic version range syntax or exact version of a Python version
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
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "consensus-specs"]
path = eth-specs
url = [email protected]:ethereum/consensus-specs.git
branch = dev
1 change: 1 addition & 0 deletions eth-specs
Submodule eth-specs added at ae3ef6
5 changes: 5 additions & 0 deletions install-eth-specs.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0f6bcf1

Please sign in to comment.