mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-01-02 13:13:08 +00:00
test: workflow with shards
This commit is contained in:
parent
ad295831d3
commit
53266bbaf1
6
.github/workflows/nomos_daily.yml
vendored
6
.github/workflows/nomos_daily.yml
vendored
@ -1,10 +1,12 @@
|
|||||||
name: Nomos E2E Tests Daily
|
name: Test Nomos E2E Tests Daily
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 4 * * *'
|
- cron: '0 4 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- chore-sharding-github-workflows
|
||||||
jobs:
|
jobs:
|
||||||
test-common:
|
test-common:
|
||||||
uses: ./.github/workflows/test_common.yml
|
uses: ./.github/workflows/test_common.yml
|
||||||
|
|||||||
6
.github/workflows/test_common.yml
vendored
6
.github/workflows/test_common.yml
vendored
@ -9,6 +9,10 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
name: tests
|
name: tests
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
shard: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
steps:
|
steps:
|
||||||
@ -29,4 +33,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
pytest
|
pytest --shard-id=${{ matrix.shard }} --num-shards=10
|
||||||
@ -41,4 +41,5 @@ typing_extensions==4.9.0
|
|||||||
urllib3==2.2.2
|
urllib3==2.2.2
|
||||||
virtualenv==20.25.0
|
virtualenv==20.25.0
|
||||||
Jinja2~=3.1.5
|
Jinja2~=3.1.5
|
||||||
psutil~=7.0.0
|
psutil~=7.0.0
|
||||||
|
pytest-shard==0.1.2
|
||||||
Loading…
x
Reference in New Issue
Block a user