Skip to content

Commit

Permalink
Use tox-gh under the hood over tox-gh-actions
Browse files Browse the repository at this point in the history
Part of the `tox-dev` organisation
  • Loading branch information
paddyroddy committed Oct 8, 2024
1 parent bd4789c commit cb72859
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ jobs:
- "3.12"
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/python/tox@cae02393710f18f5fbacd9545d1a38f0d661758e # v0
- uses: paddyroddy/.github/actions/python/tox@2e83ccde571114eea4dacae50214fd1dff839be0 # v0
with:
cache-path: |-
.tox
~/.cache/sleplet
operating-system: ${{ matrix.os }}
pyproject-toml: ./pyproject.toml
python-version: ${{ matrix.python-version }}

Expand Down
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -208,22 +208,17 @@ overrides."tool.ruff.lint.isort.section-order".inline_arrays = false

[tool.tox]
legacy_tox_ini = """
[gh-actions]
[gh]
python =
3.11: py311
3.12: py312
[gh-actions:env]
OS =
ubuntu-latest: linux
macos-latest: macos
[testenv]
commands =
pytest --cov --cov-report=lcov
deps =
pytest-cov
[tox]
env_list = py{310,311,312}-{linux,macos}
env_list = py{310,311,312}
"""

0 comments on commit cb72859

Please sign in to comment.