Skip to content

Commit

Permalink
Simplify example (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Oct 10, 2024
1 parent 415c400 commit 3ce50e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ python =
For `tox.toml`:

```toml
[gh]
python."3.13" = ["3.13", "type", "pkg_meta"]
python."3.12" = ["3.12"]
python."3.11" = ["3.11"]
[gh.python]
"3.13" = ["3.13", "type", "pkg_meta"]
"3.12" = ["3.12"]
"3.11" = ["3.11"]
```

For `pyproject.toml`:

```toml
[tool.tox.gh]
python."3.13" = ["3.13", "type", "pkg_meta"]
python."3.12" = ["3.12"]
python."3.11" = ["3.11"]
[tool.tox.gh.python]
"3.13" = ["3.13", "type", "pkg_meta"]
"3.12" = ["3.12"]
"3.11" = ["3.11"]
```

This will run a different set of tox environments on different python versions set up via GitHub `setup-python` action:
Expand Down
12 changes: 6 additions & 6 deletions tox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ deps = [
extras = ["docs", "testing"]
commands = [["uv", "pip", "tree"], ["python", "-c", 'print(r"{env_python}")']]

[gh]
python."3.13" = ["3.13", "type", "pkg_meta"]
python."3.12" = ["3.12"]
python."3.11" = ["3.11"]
python."3.10" = ["3.10"]
python."3.9" = ["3.9"]
[gh.python]
"3.13" = ["3.13", "type", "pkg_meta"]
"3.12" = ["3.12"]
"3.11" = ["3.11"]
"3.10" = ["3.10"]
"3.9" = ["3.9"]

0 comments on commit 3ce50e6

Please sign in to comment.