Skip to content

Commit 75b6ea4

Browse files
authored
Switch from tox-gh-actions to tox-gh and use TOML (#181)
Second attempt and fixing #173
1 parent c2ef3dd commit 75b6ea4

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ jobs:
3131
- "3.13"
3232
steps:
3333
# yamllint disable-line rule:line-length
34-
- uses: paddyroddy/.github/actions/python/tox@f2115592179eb43cf106eeb181adcd003d4cba41 # v0
34+
- uses: paddyroddy/.github/actions/python/tox@2e83ccde571114eea4dacae50214fd1dff839be0 # v0
3535
with:
3636
cache-path: .tox
37-
operating-system: ${{ matrix.os }}
3837
pyproject-toml: ./pyproject.toml
3938
python-version: ${{ matrix.python-version }}

pyproject.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -137,27 +137,27 @@ write_to = "src/example/_version.py"
137137
overrides."project.classifiers".inline_arrays = false
138138
overrides."tool.coverage.paths.source".inline_arrays = false
139139
overrides."tool.ruff.lint.isort.section-order".inline_arrays = false
140+
overrides."tool.tox.env_run_base.commands".inline_arrays = false
140141

141142
[tool.tox]
142-
legacy_tox_ini = """
143-
[gh-actions]
144-
python =
145-
3.11: py311
146-
3.12: py312
147-
3.13: py313
148-
149-
[gh-actions:env]
150-
OS =
151-
ubuntu-latest: linux
152-
macos-latest: macos
153-
windows-latest: windows
154-
155-
[testenv]
156-
commands =
157-
pytest --cov --cov-report=lcov
158-
deps =
159-
pytest-cov
160-
161-
[tox]
162-
env_list = py{311,312}-{linux,macos,windows}
163-
"""
143+
env_list = [
144+
"py311",
145+
"py312",
146+
"py313",
147+
]
148+
env_run_base = {commands = [
149+
[
150+
"pytest",
151+
"--cov",
152+
"--cov-report=lcov",
153+
],
154+
], deps = [
155+
"pytest-cov",
156+
]}
157+
gh.python = {"3.11" = [
158+
"py311",
159+
], "3.12" = [
160+
"py312",
161+
], "3.13" = [
162+
"py313",
163+
]}

0 commit comments

Comments
 (0)