diff --git a/.github/workflows/examples.yaml b/.github/workflows/examples.yaml index 5c91fc7e..23598657 100644 --- a/.github/workflows/examples.yaml +++ b/.github/workflows/examples.yaml @@ -35,11 +35,10 @@ 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 -n auto + run: python -m pytest --codeblocks .github README.md documentation examples: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index 34a18f7d..fe76f554 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,7 +68,6 @@ optional-dependencies = {dev = [ "pdoc3", ], readme = [ "pytest-codeblocks", - "pytest-xdist", ]} readme = "README.md" requires-python = ">=3.11" @@ -206,21 +205,27 @@ write_to = "src/sleplet/_version.py" overrides."project.classifiers".inline_arrays = false overrides."tool.coverage.paths.source".inline_arrays = false overrides."tool.ruff.lint.isort.section-order".inline_arrays = false +overrides."tool.tox.env_run_base.commands".inline_arrays = false [tool.tox] -legacy_tox_ini = """ - [gh] - python = - 3.11: py311 - 3.12: py312 - 3.13: py313 - - [testenv] - commands = - pytest --cov --cov-report=lcov - deps = - pytest-cov - - [tox] - env_list = py{311,312} -""" +env_list = [ + "py311", + "py312", + "py313", +] +env_run_base = {commands = [ + [ + "pytest", + "--cov", + "--cov-report=lcov", + ], +], deps = [ + "pytest-cov", +]} +gh.python = {"3.11" = [ + "py311", +], "3.12" = [ + "py312", +], "3.13" = [ + "py313", +]}