Skip to content

Commit

Permalink
Merge branch 'main' into python/3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy authored Oct 11, 2024
2 parents af60729 + df53d6b commit 30bbdc5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
39 changes: 22 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ optional-dependencies = {dev = [
"pdoc3",
], readme = [
"pytest-codeblocks",
"pytest-xdist",
]}
readme = "README.md"
requires-python = ">=3.11"
Expand Down Expand Up @@ -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",
]}

0 comments on commit 30bbdc5

Please sign in to comment.