Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Python tests #4

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 24 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Continuous integration
on:
push:
branches:
- devel
- alpha
- stable
pull_request:
branches:
- devel
- alpha
- stable
on: push
# branches:
# - devel
# - alpha
# - stable
# pull_request:
# branches:
# - devel
# - alpha
# - stable
jobs:
tests:
strategy:
Expand Down Expand Up @@ -106,8 +105,20 @@ jobs:
fetch-depth: 0 # fetch git tags for "git describe"

- name: make docker
run: DOCKER_UID=$(id -u) DOCKER_GID=$(id -g) make docker
run: DOCKER_TAG=thorax/erigon:ci-$GITHUB_SHA DOCKER_UID=$(id -u) DOCKER_GID=$(id -g) make docker

# check with root permissions, should be cached from previous build
- name: sudo make docker
run: sudo DOCKER_UID=$(id -u) DOCKER_GID=$(id -g) make docker
run: sudo DOCKER_TAG=thorax/erigon:ci-$GITHUB_SHA DOCKER_UID=$(id -u) DOCKER_GID=$(id -g) make docker

- name: run hive
run: docker run --rm -v /var/run/docker.sock:/var/run/docker.sock gatewayfm/hive:latest --sim ethereum/sync --client erigon_ci-$GITHUB_SHA --docker.output --loglevel 5

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: run python tests
run: docker run --rm -v /var/run/docker.sock:/var/run/docker.sock gatewayfm/automated-testing:erigon-latest --url=http://localhost:8545