2025-12-10 13:31:44 +08:00

36 lines
830 B
YAML

name: E2E Tests Common
on:
workflow_call:
env:
FORCE_COLOR: "1"
jobs:
tests:
name: tests
strategy:
fail-fast: false
matrix:
shard: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- name: Remove unwanted software
uses: ./.github/actions/prune-vm
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
- run: |
pip install -r requirements.txt
mkdir -p kzgrs
wget https://raw.githubusercontent.com/logos-blockchain/logos-blockchain/refs/heads/master/tests/kzgrs/kzgrs_test_params -O kzgrs/kzgrs_test_params
- name: Run tests
run: |
pytest --shard-id=${{ matrix.shard }} --num-shards=10