diff --git a/.github/workflows/examples.yaml b/.github/workflows/examples.yaml index 8fb312b1..df96a9e3 100644 --- a/.github/workflows/examples.yaml +++ b/.github/workflows/examples.yaml @@ -35,10 +35,11 @@ jobs: key: readme-${{ hashFiles('pyproject.toml') }} - name: Install dependencies - run: python -m pip install -e '.[readme]' + run: python -m pip install -e ".[readme]" - name: Run examples in the README - run: python -m pytest --codeblocks .github README.md documentation + run: >- + python -m pytest --codeblocks .github README.md documentation -n auto examples: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index 78a008d0..27711b04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,6 +68,7 @@ optional-dependencies = {dev = [ "pdoc3", ], readme = [ "pytest-codeblocks", + "pytest-xdist", ]} readme = "README.md" requires-python = ">=3.10"