66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
|
name: Tests
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
branches: '*'
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
- ci-test
|
||
|
|
||
|
env:
|
||
|
SO_VERSION: roysc/fix-eth-stacks
|
||
|
SYSTEM_TESTS_REF: roysc/test-blob-tx
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
name: Run integration tests
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- uses: actions/setup-go@v4
|
||
|
with:
|
||
|
go-version-file: 'go.mod'
|
||
|
check-latest: true
|
||
|
- name: "Build server image"
|
||
|
run: docker build . -t cerc/eth-blob-indexer:local
|
||
|
- name: "Install Python"
|
||
|
uses: actions/setup-python@v4
|
||
|
with:
|
||
|
python-version: 3.11
|
||
|
|
||
|
- name: "Install stack-orchestrator"
|
||
|
uses: actions/checkout@v3
|
||
|
with:
|
||
|
repository: cerc-io/stack-orchestrator
|
||
|
ref: ${{ env.SO_VERSION }}
|
||
|
path: ./stack-orchestrator
|
||
|
- run: pip install ./stack-orchestrator
|
||
|
|
||
|
- name: "Clone system-tests"
|
||
|
uses: actions/checkout@v3
|
||
|
with:
|
||
|
repository: cerc-io/system-tests
|
||
|
ref: ${{ env.SYSTEM_TESTS_REF }}
|
||
|
path: ./system-tests
|
||
|
- name: "Install pytest"
|
||
|
working-directory: ./system-tests
|
||
|
run: pip3 install pytest
|
||
|
|
||
|
- name: "Run fixturenet stack"
|
||
|
run: ./scripts/integration-setup.sh
|
||
|
env:
|
||
|
SKIP_BUILD: 1
|
||
|
- name: "Run server"
|
||
|
run: docker compose -f test/compose.yml up --wait --quiet-pull
|
||
|
- name: "Run tests"
|
||
|
working-directory: ./system-tests
|
||
|
# Work around dependency conflicts:
|
||
|
# - web3 uses an older eth-account until (unreleased) v7
|
||
|
# - old pydantic is pinned by stack-orchestrator
|
||
|
run: |
|
||
|
pip3 install -r requirements.txt
|
||
|
pip3 install --no-deps 'eth-account>=0.12.3'
|
||
|
pip3 install 'pydantic>=2.0.0'
|
||
|
python3 -m pytest -vv -k test_blob_tx
|