Skip to content

Commit 9d88841

Browse files
authored
Try pytest-xdist (#415)
1 parent da56d82 commit 9d88841

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/examples.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ jobs:
3535
key: readme-${{ hashFiles('pyproject.toml') }}
3636

3737
- name: Install dependencies
38-
run: python -m pip install -e '.[readme]'
38+
run: python -m pip install -e ".[readme]"
3939

4040
- name: Run examples in the README
41-
run: python -m pytest --codeblocks .github README.md documentation
41+
run: >-
42+
python -m pytest --codeblocks .github README.md documentation -n auto
4243
4344
examples:
4445
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ optional-dependencies = {dev = [
6868
"pdoc3",
6969
], readme = [
7070
"pytest-codeblocks",
71+
"pytest-xdist",
7172
]}
7273
readme = "README.md"
7374
requires-python = ">=3.10"

0 commit comments

Comments
 (0)