Skip to content

Commit d5616fa

Browse files
authored
test pytest-split (#112)
1 parent eb183e3 commit d5616fa

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
timeout-minutes: 20
1212
strategy:
1313
fail-fast: false
14+
matrix:
15+
group: [1, 2, 3]
1416

1517
steps:
1618
- uses: actions/checkout@v4
@@ -25,4 +27,4 @@ jobs:
2527
python -m pip install -e .[test]
2628
- name: Test with pytest
2729
run: |
28-
python -m pytest tests/
30+
python -m pytest --splits 3 --group ${{ matrix.group }} tests/

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ Repository = "https://github.com/lucidrains/alphafold3-pytorch"
6060
[project.optional-dependencies]
6161
examples = []
6262
test = [
63-
"pytest"
63+
"pytest",
64+
"pytest-split"
6465
]
6566

6667
[build-system]

0 commit comments

Comments
 (0)