Skip to content

Commit

Permalink
ci(tox): revert tox to the ini config format
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedykori committed Dec 12, 2024
1 parent 9bd7dcd commit 1ce8147
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
git_commit_gpgsign: true
git_committer_email: ${{ secrets.FYJ_GIT_COMMITTER_EMAIL }}
git_committer_name: ${{ secrets.FYJ_GIT_COMMITTER_NAME }}
# Currently, signing commits leads to the CI hanging indefinitely.
# Currently, signing tags leads to the CI hanging indefinitely.
# See https://github.com/semantic-release/semantic-release/issues/3065
git_tag_gpgsign: false
git_user_signingkey: true
Expand Down
23 changes: 12 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ requires-python = ">=3.11" # Support Python 3.10+.
[project.optional-dependencies]
coveralls = ["coveralls~=4.0.1"]

dev = [
"pre-commit~=4.0.1",
]
dev = ["pre-commit~=4.0.1"]

docs = [
"furo==2024.8.6",
Expand Down Expand Up @@ -289,9 +287,10 @@ where = ["src"]
root = "."

[tool.tox]
env_list = ["py31{1,2,3}", "coveralls", "docs", "package"]
env_list = ["3.11", "3.12", "3.13", "coveralls", "docs", "package"]
isolated_build = true
requires = ["tox>=4.23.2", "tox-uv>=1.16.0"]
# requires = ["tox>=4.23.2", "tox-uv>=1.16.0"]
requires = ["tox>=4.23.2"]
no_package = false
skip_missing_interpreters = true

Expand All @@ -310,16 +309,18 @@ description = "test and lint the project"
download = true
extras = ["test"]
set_env = { PYTHONPATH = "{toxinidir}/src", PYRIGHT_PYTHON_FORCE_VERSION = "latest" }
uv_python_preference = "only-system"

[tool.tox.env.coveralls]
# If running outside Github, ensure that the the `COVERALLS_REPO_TOKEN`
# If running outside GitHub, ensure that the `COVERALLS_REPO_TOKEN`
# environment variable is set.
# Also, this only works for Python = ">=3.8,<3.13".
# See https://github.com/TheKevJames/coveralls-python/issues/523
base_python = ["py312"]
commands = [["coveralls", "--service=github"]]
commands = [["python", "--version"], ["coveralls", "--service=github"]]
description = "submit coverage results to coverall.io"
depends = ["env_run_base"]
deps = ["coveralls"]
extras = ["coveralls"]
pass_env = ["COVERALLS_REPO_TOKEN", "GITHUB_*"]
skip_install = true
Expand All @@ -345,7 +346,7 @@ skip_install = true

[tool.tox.gh-actions]
python = """
3.11: py311
3.12: py312, coveralls
3.13: py313, docs, package
"""
3.11: 3.11
3.12: 3.12, coveralls
3.13: 3.13, docs, package
"""

0 comments on commit 1ce8147

Please sign in to comment.