Skip to content

Commit

Permalink
Switch from tox-gh-actions to tox-gh and use TOML (#181)
Browse files Browse the repository at this point in the history
Second attempt and fixing #173
  • Loading branch information
paddyroddy authored Oct 11, 2024
1 parent c2ef3dd commit 75b6ea4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ jobs:
- "3.13"
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/python/tox@f2115592179eb43cf106eeb181adcd003d4cba41 # v0
- uses: paddyroddy/.github/actions/python/tox@2e83ccde571114eea4dacae50214fd1dff839be0 # v0
with:
cache-path: .tox
operating-system: ${{ matrix.os }}
pyproject-toml: ./pyproject.toml
python-version: ${{ matrix.python-version }}
44 changes: 22 additions & 22 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -137,27 +137,27 @@ write_to = "src/example/_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-actions]
python =
3.11: py311
3.12: py312
3.13: py313
[gh-actions:env]
OS =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
[testenv]
commands =
pytest --cov --cov-report=lcov
deps =
pytest-cov
[tox]
env_list = py{311,312}-{linux,macos,windows}
"""
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 75b6ea4

Please sign in to comment.