Merge pull request #16 from logos-co/chore-sharding-github-workflows

chore: Add sharding to Github workflow
This commit is contained in:
Roman Zajic 2025-04-28 15:14:52 +08:00 committed by GitHub
commit 55ac288e14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -9,6 +9,10 @@ env:
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:
@ -29,4 +33,4 @@ jobs:
- name: Run tests
run: |
pytest
pytest --shard-id=${{ matrix.shard }} --num-shards=10

View File

@ -41,4 +41,5 @@ typing_extensions==4.9.0
urllib3==2.2.2
virtualenv==20.25.0
Jinja2~=3.1.5
psutil~=7.0.0
psutil~=7.0.0
pytest-shard==0.1.2