add shard
This commit is contained in:
parent
612f5f5dd1
commit
63b63dfedd
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@ -5,6 +5,11 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 20
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
group: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -19,4 +24,4 @@ jobs:
|
|||||||
python -m uv pip install -e .[test]
|
python -m uv pip install -e .[test]
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
python -m pytest tests/
|
python -m pytest --num-shards 10 --shard-id ${{ matrix.group }} tests/
|
||||||
|
|||||||
@ -43,7 +43,8 @@ Repository = "https://github.com/lucidrains/dreamer4"
|
|||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
examples = []
|
examples = []
|
||||||
test = [
|
test = [
|
||||||
"pytest"
|
"pytest",
|
||||||
|
"pytest-shard"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user